Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,005
- How-to & Troubleshooting
- 129,529
- Creating & Extending
- 25,790
- Requests & Feedback
- 9,496
- Third Party Plugins
- 9,784
- Showcase
- 3,316
- Ideas
- 1,397
- Miscellaneous
- 9,170
-
Have you tried calling bp_get_profile_field_data and testing against NULL / empty string?
Here’s its definition:
function bp_get_profile_field_data( $args = ” ) {
$defaults = array(
‘field’ => false, // Field name or ID.
‘user_id’ => $bp->displayed_user->id
);
..
}
Most of the template tags have a “get” version that doesn’t echo the result.
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS