Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,046
- How-to & Troubleshooting
- 129,728
- Creating & Extending
- 25,799
- Requests & Feedback
- 9,505
- Third Party Plugins
- 9,793
- Showcase
- 3,316
- Ideas
- 1,375
- Miscellaneous
- 9,181
-
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.