WordPress.org

Ready to get started?Download WordPress

Forums

Showing content to level_1 and not level_0 users (2 posts)

  1. tgiokdi
    Member
    Posted 4 years ago #

    since this last update, the code that I'm using to show level_1 users (contributors) vs level_0 (subscribers) isn't working the way that it used to.

    here's what I'm using:

    <?php
    if ( current_user_can('level_1') ) { ?>
    
    <?php include(ABSPATH . 'wp-dropdown-comments.php'); ?>
    
    <?php } else { ?>
    
    <?php comments_template(); // Get wp-comments.php template ?>
    
    <?php } ?>

    what happening is that anyone that's logged in can see the level_1 content. any ideas as to what's going on here?

  2. tgiokdi
    Member
    Posted 4 years ago #

    to answer this question if anyone else has it the "level_1" and "level_0" no longer function at all. I ended up using a capabilities plugin and adding in my own capabilities.

Topic Closed

This topic has been closed to new replies.

About this Topic