Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,005
- How-to & Troubleshooting
- 129,527
- Creating & Extending
- 25,790
- Requests & Feedback
- 9,496
- Third Party Plugins
- 9,782
- Showcase
- 3,316
- Ideas
- 1,397
- Miscellaneous
- 9,170
-
Ok, thought I’d follow up in case anyone tries to do the same thing.
Here’s the code that ended up working:
$user_id = $comment->user_id;
$isMember = xprofile_get_field_data( ‘Member’, $user_id );
if ($isMember == “”) {
} else {
?>
<?php
}
No idea how this would be done if you were testing for more than one checkbox though, but for my use (either checked or not), it worked just fine.
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS