Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_member_profile_data


  • MC-land
    Participant

    @michaeliresource

    I’ve added this into my directory loop to show address field under the users name
    <?php echo bp_member_profile_data(‘field=Address’); ?>

    Problem is, it only shows up if you are logged in. Is there a way to retrieve the data from the field so its available to the public?

Viewing 1 replies (of 1 total)

  • MC-land
    Participant

    @michaeliresource

    solved it, for anyone wondering how.

    Use this instead:
    xprofile_get_field_data( ‘Address’, bp_get_member_user_id() );

Viewing 1 replies (of 1 total)
  • The topic ‘bp_member_profile_data’ is closed to new replies.
Skip to toolbar