Show content user level higher than 1.
-
Hello, I have nearly solved this and got the code bellow that shows content to the user level 1, and anyone who is not level 1 see’s the other content.
What I would like is to display certain content all users with the level 1 or higher (2,3,4,5,6,7,8,9,10).
Could anyone help please.
<?php global $current_user; get_currentuserinfo(); if ($current_user->user_level == 1 ) { ?> LEVEL 2+ CONTENT <?php } else { ?> OTHER CONTENT <?php } ?>
Many thanks,
Elliot.
- The topic ‘Show content user level higher than 1.’ is closed to new replies.