Hide Posts by Category

A WordPress plugin to hide posts from non-administrators by category.

Author:Joe Rybacek (profile at wordpress.org)
WordPress version required:5.0
WordPress version tested:5.3.8
Plugin version:1.1
Added to WordPress repository:21-12-2019
Last updated:21-12-2019
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:https://github.com/jrybacek/hide-a-post/
Total downloads:555
plugin download
Click to start download

This plugin enables Editors to see only their content and categorized content. Uncategorized posts from Administrators do not show up for Editors.

Hide A Post Settings

Typed in the categories that I don’t want to have seen:

Awesome, Spicy

Example Posts (seen from Administrators)

  1. Tomato (Owner: Administrator, Categories: Fruit, Red)
  2. Potato (Owner: Administrator, Categories: Vegetable, White)
  3. Broccoli (Owner: Administrator, Categories: Vegetable, Green)
  4. Mushrooms (Owner: Administrator, Categories: Vegetable, White, Awesome) – This is a post, I want to hide from other non-Administrators based on the “Awesome” category.
  5. Apple (Owner: Administrator, Catgories: Fruit, Red)
  6. Pear (Owner: Administrator, Categories: Fruit, Green, Awesome) – This is a post, I want to hide from other non-Administrators based on the “Awesome” category.
  7. Peppers (Owner: Administrator, Categories: Vegetable, Green, Spicy) – This is a post, I want to hide from other non-Administrators based on the “Spicy” category.
  8. Peach (Owner: Administrator, Categories: Uncategorized) – I’ve just started creating this post as an Administrator
  9. Blueberries (Owner: Administrator, Categories: Fruit, Blue, Uncategorized) – Even thought I’ve started adding categories to this post, it won’t show up based on the “Uncategorized” category.
  10. Raspberries (Owner: Editor, Categories: Fruit, Red, Awesome) – Since I’m an administrator, I can still see this post, even though its in the “Awesome” category.

Example Posts (seen from Editors)

  1. Tomato (Owner: Administrator, Categories: Fruit, Red)
  2. Potato (Owner: Administrator, Categories: Vegetable, White)
  3. Broccoli (Owner: Administrator, Categories: Vegetable, Green)
  4. Apple (Owner: Administrator, Catgories: Fruit, Red)
  5. Raspberries (Owner: Editor, Categories: Fruit, Red, Awesome) – Since I’m an administrator, I can still see this post, even though its in the “Awesome” category.

About the plugin

We wanted to use WordPress with our tabletop gaming group. This enables us to all collaborate on content creation, while enabling the dungeon master to retain some “secrets”.


Screenshots
FAQ