WordPress.org

Ready to get started?Download WordPress

Forums

User Role Editor
[resolved] Hide posts from specific roles (2 posts)

  1. 3zzy
    Member
    Posted 1 year ago #

    Hi,

    Is there any way I could hide posts from specific users/roles? Even a template tag that I could use as condition in my theme would be fine.

    http://wordpress.org/extend/plugins/user-role-editor/

  2. Vladimir Garagulya
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    try to check this condition:

    if ( current_user_can('role_name') ) {
      \\ decide to show or skip post here
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic