Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Using xProfile custom field values


John James Jacoby
Keymaster

@johnjamesjacoby

Which version of BuddyPress are you using?

In the trunk, you’d be best to use…

function xprofile_get_field_data( $field, $user_id )

…to get what you’re after.

Used like…

$retval = xprofile_get_field_data( 'Address', $bp->loggedin_user->id );

That would return the value of the field “Address” for the currently logged in user.

Skip to toolbar