How to display field from custom post type?
-
I’ve added a custom post type field using this field, and if I try including the field in a template file like this:
<?php bp_member_profile_data( 'field=Favorite Pic' ); ?>
It returns the Post ID number of the custom post type. How would I access one of the fields in the CPT?
For example, one of my custom fields tied to the Custom Post Type is an image field called ‘favorite_pic.’ How could I pull that image in when someone select that CPT post in their profile?
Thanks anyone!
https://www.ads-software.com/plugins/buddypress-xprofile-custom-fields-type/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to display field from custom post type?’ is closed to new replies.