xprofile_get_field_data not returning drop-down data and strings
-
Hello,
I’m trying to display x profile fields underneath the member header. Checkbox data displays perfectly. Drop-downs and strings aren’t displaying. Here’s the code:
if ( $memberRoles = xprofile_get_field_data( ‘AD Roles’, bp_get_member_user_id() ) ) :
foreach ( $memberRoles as $memberRoles ) {
echo ‘<div class=”roles”><h5>’;
echo $memberRoles;
echo ‘, </h5></div>’;
}
endif;Any information about how to display drop-downs and strings using xprofile_get_field_data is greatly appreciated.
Thank you!
- The topic ‘xprofile_get_field_data not returning drop-down data and strings’ is closed to new replies.