Forums
-
- Forum
- Posts
-
- Installation
- 28,369
- Troubleshooting
- 62,138
- Themes
- 10,387
- Plugins
- 15,305
- Requests & Feedback
- 14,888
- Showcase
- 3,252
-
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