Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_get_profile_field_data


  • boriskamp1991
    Participant

    @boriskamp1991

    Hello,

    Im trying to get this to work, why is it not working? If I log in with a user profile with a Fonds assigned to it, it displays nothing. It doesn’t matter what field Im trying to display, it echo’s nothing!? driving me crazy….

    <?php
       $filemakerID = bp_get_profile_field_data( 'field=Fonds' );
       echo $filemakerID;
     ?>
Viewing 2 replies - 1 through 2 (of 2 total)

  • shanebp
    Moderator

    @shanebp

    Depending on where you’re trying to display this info, you may need to use

    xprofile_get_field_data( $field, $user_id = 0, $multi_format = 'array' )

    For example:

    $user_id = 1;
    $filemakerID = xprofile_get_field_data( 'Fonds', $user_id, $multi_format = 'comma' );
    echo $filemakerID;

    boriskamp1991
    Participant

    @boriskamp1991

    Thank you for your answer, I just found out my profile pages are completely blank as well, might this have to do with is? because im sure the code from my first post worked before.

    Now when I click on view in WP’s user section, it displays a blank page with the following url: /members/boris-kamp

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘bp_get_profile_field_data’ is closed to new replies.
Skip to toolbar