Title: [Plugin: User Role Editor] Hide posts from specific roles
Last modified: August 20, 2016

---

# [Plugin: User Role Editor] Hide posts from specific roles

 *  Resolved [3zzy](https://wordpress.org/support/users/3zzy/)
 * (@3zzy)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-user-role-editor-hide-posts-from-specific-roles/)
 * 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/](http://wordpress.org/extend/plugins/user-role-editor/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-user-role-editor-hide-posts-from-specific-roles/#post-3058409)
 * Hi,
 * try to check this condition:
 *     ```
       if ( current_user_can('role_name') ) {
         \\ decide to show or skip post here
       }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: User Role Editor] Hide posts from specific roles’ is closed 
to new replies.

 * ![](https://ps.w.org/user-role-editor/assets/icon-256x256.jpg?rev=1020390)
 * [User Role Editor](https://wordpress.org/plugins/user-role-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-role-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-role-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/user-role-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-role-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-role-editor/reviews/)

## Tags

 * [condition](https://wordpress.org/support/topic-tag/condition/)
 * [tag](https://wordpress.org/support/topic-tag/tag/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 1 reply
 * 2 participants
 * Last reply from: [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-user-role-editor-hide-posts-from-specific-roles/#post-3058409)
 * Status: resolved