Skip to:
Content
Pages
Categories
Search
Top
Bottom

xprofile_get_field_data not returning drop-down data and strings


  • rgrober
    Participant

    @rgrober

    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 ‘,&nbsp</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.
Skip to toolbar