What is it? BP-DEV.org is the community of BuddyPress' developers that create and extend this platform.

BuddyPress Developers' Community

BuddyPressDEV Forums » HowTo & Start Developing

How to retrieve user data

(1 post)
  • Started 8 months ago by mateuspinheiro
  1. mateuspinheiro
    Member

    Hey fellows!

    I've tryed for hours and i can't go on, so, please, help me!

    I need to retrieve a user's profile data, but i can't figure out how to do that.

    I've tryed to make a function that do this for me based in the loop of the template file 'profile-loop.php', but i can't get a specific user data by giving the function the user id, can I?

    I've used the following loop

    while (bp_profile_fields()) {
    bp_profile_field();
    if (bp_field_has_data() ) {

    bp_the_profile_field_name();
    echo " => ";
    bp_the_profile_field_value();
    echo "
    ";

    }
    }

    Posted 8 months ago #

Reply

You must log in to post.