Forums
-
- Forum
- Posts
-
- Installation
- 27,301
- Troubleshooting
- 59,713
- Themes
- 10,087
- Plugins
- 14,842
- Requests & Feedback
- 14,513
- Showcase
- 3,230
-
If you’re trying to get the user for the current post in post.php, you might want to use:
$user=bb_get_user(get_post_author_id());
This should get the user for the current post author. Then you can loop through the roles.
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS