Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,881
- Creating & Extending
- 25,912
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,184
-
This works properly on my test install, put in bp-custom.php
function laddi_show_user_role () {
$abc_role = bbp_get_user_display_role( bp_displayed_user_id() );
echo '<br/><span class="profile-role ' . $abc_role . '"><i class="fa fa-star"></i><em>';
echo $abc_role;
echo '</em></span>';
}
add_action( 'bp_before_member_header_meta', 'laddi_show_user_role' );