Show a Users Role on their Profile Page
-
I am using a custom profile template and would like to show the role of the user profile being viewed. So if I am logged into my account and viewing ANOTHER users profile I want to be able to see their role. I have tried using the following code refrenced onthe get_role page with no luck:
<?php um_fetch_user( 12 ); if ( $ultimatemember->user->get_role() == 'paid-member' ) { // Show this to paid customers } else { // You are a free member } ?>
How can I get this to display the role of the profile of the user being viewed?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.