Support » Themes and Templates » Show different content for user level

  • Okay so I have

    <div class="level">
        <?php global $user_ID; if( $user_ID ) : ?>
    <?php if( current_user_can('level_10') ) : ?>
    <a href="">Admin</a>
    <?php else : ?>
    <?php endif; ?>
    <?php endif; ?>

    which shows different content for users with Level 10 and any other. How can I edit the code to show different content to users with level 10, then different for level 9 and 8 and so on…


  • The topic ‘Show different content for user level’ is closed to new replies.