Forums
-
- Forum
- Posts
-
- Installation
- 27,623
- Troubleshooting
- 60,561
- Themes
- 10,191
- Plugins
- 14,975
- Requests & Feedback
- 14,607
- Showcase
- 3,238
-
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