Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,881
- Creating & Extending
- 25,912
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,184
-
Try fetching just one field. If you pass in an id, don’t make it a string.
$my_field = xprofile_get_field_data(10);
or
$my_field = xprofile_get_field_data(10, $user_id);
Because you’re in a sidebar, this may not work, but replace ‘Company’ with a field name and try:
$my_field = bp_get_member_profile_data( 'field=Company' );