WordPress.org

Support

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

Show different content for user level

  • aled2305

    @aled2305

    Okay so I have

    <div class="level">
        <?php global $user_ID; if( $user_ID ) : ?>
    <?php if( current_user_can('level_10') ) : ?>
    
    <a href="http://techyoucation.com/wp-admin/">Admin</a>
    
    <?php else : ?>
    
    FREE
    
    <?php endif; ?>
    <?php endif; ?>
        </div>

    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…

    Thanks

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