Allow Categories

Ok, latest wordpress plugin modification. This time its of L. Fargue’s Restrict categories plugin.

  • Users are assigned permissions to view posts in certain categories
  • If users don’t have permission to certain posts, those posts aren’t shown, including in the main view and archives.
  • Categories can be made public to everyone, and there is an option to force users to login.
  • This is an initial version, so please report any errors or bugs.

Installation:
1) Download the plugin: http://wordpress.org/extend/plugins/allow-categories/
2) Unzip it
3) Copy to your wp-content/plugins directory
4) Activate within wordpress admin
5) Goto Managed->Allow Categories to edit permissions

Change Log:
0.6.4
Removed debug statement
0.6.3
Fix for recent posts
0.6.2
Remove debug statement
0.6.1
Added allow_list_categories($args) function that can be used in templates to replace wp_list_categories($args) functions. This is a work around until wordpress provide a proper hook for filter a list of categories, so its not perfect. It may work in place of some wp_list_cats() and list_cats() too.
0.6.0
Fix for (Public) posts and redirect to login
Admin users no longer show up in list for version 2.5+
0.5.9
Option to redirect to login if viewing a post or category that is not public and the user is not already logged in
0.5.8
Small bug fix to comment logic in 0.5.6
0.5.7
Allows editing of draft posts by non-admin owner of the draft.
0.5.6
Shows comment content for RSS for public posts or for RSS readers that
know that share login information with the browser (eg. Opera).
0.5.5
Bug fix that would show posts to users who had no categories listed.

Disclaimer:
This plugin is experimental and is provided with no support or warranty. It should not be considered as providing complete security to wordpress content.


Reader Comments

  1. Hi,
    I use allow categories for my website. After update wordpress to version 3.3 the plugin isn’t working correct. Please help!

  2. Hi,
    just to let you know, there seems to be a Problem with event categories in all roles except admins. Activating “Allow Categories” gives everyone except admins an error when publishing an event (“you are not allowed to post in this category”).
    lg stefan

  3. Hi,
    I installed “allow categories” on my wp 3.3.1. website. It works but not correct when I edit menu’s as admin.
    As soon as I attach a category (accessable for limited users) to the main menu, it disapears from the menu in the admin panel when saving. Only solution is to disable the pluging “allow categories”; make the menu with the category; save that and then enable the plugin ‘allow categories’.
    So as admin I cannot make menu’s with categories when the plugin is enabled.

  4. Hi,

    Great plugin! Thanks!

    I have some categories listed in the side bar. Is there a way to not show them to users that do not have the rights to see the categories?

    Thanks!

    Having restrictions for user groups or roles would be great. Maybe some combination with role manager?

    Thanks

    Stefan

  5. Hi,
    I have WordPress 3.3.2 installed and Allow Categories plugin 0.6.6.
    Plugin works but not correct: registered users can access to all categories even they have no permissions in plugin’s settings. Please, help!

  6. Sorry, i have put check on (Loged) – that’s why i had trouble. All works!! Thank’s!

  7. Users are not in alphabetical order nor can I find way to sort. Attempting to match large number of categories with large number of users and difficult if not impossible to navigate one page settings for this plugin.

  8. Having problems with menu items and categories that are only visible for certain user groups. If you can contact me by email i can give you the credentials to an test installation where you can see the problem in action.

    Basicly WordPress doesn’t wan’t to save menu items that are restricted for certain users. When i put checkmarks on all items for (logged in users) it works fine BUT then the module loses functionality ;-)

    Regards,
    Reind

  9. Hi James, I think you’ve developed a great plugin but now it does not work ( I think you already know) in WP 3.4.2 registered users can access to all categories even they have no permissions in plugin’s settings. Each user can see all categories posts.

    Are you seriously planning update the plug in?
    if not can you recommend a workaround or another plugin that makes what yours did?

    Thanks!

  10. Hi,
    Everybody ,i really appreciate the painstaking work you all have done in order to get “All Categories “plug in working.it is very useful to me and i will look forward to support your work in near future.

    Thank You once again

    Regards
    Mukesh Shivji
    Danuc Robotics
    India

  11. Hi,

    I am using “allow categories” which is simple and great but I have trouble because it blocks a slider. The slider works and seems to create particular posts with only “featured image” which are displayed one after the other. There is no category, and therefore my sliders can’t appear. Is there a way to invert allow categories into forbid categories in the php code. I’ve looked quickly but couldn’t find it.
    Thanks for the plugin, hope you’ll be able to help
    regards

  12. Hi, it seems that the plugin is broken under V4. When the plugin is active and you log in to protected categories, it the goes to file not found for ALL categories… Any ideas?

    THanks!

  13. Hey James!

    Thanks for at great plugin! Really appreciated.

    I have encountered a problem: “allow categories” blocks non-logged-in-user from seeing my portfolio items created in my theme (X by themeco). And the categories of the portfolio items doesn’t show up in “allow categories”-window so there’s nothing i can do about this.

    Any advice?

  14. Hi. Your plugin really works. But i do get some warning while i adding a new post for a category. This is the warning:

    “Warning: ob_start(): non-static method Allow_Category::allow_removeCategorySelection() should not be called statically in C:\xampp\htdocs\KnowledgeBase\wp-content\plugins\allow-categories\allowcat.php on line 181”

  15. Warning: count(): Parameter must be an array or an object that implements Countable in /home/gvmelle/www/weblog/wordpress/wp-content/plugins/allow-categories/allowcat.php on line 491 with WordPress 5.2.4

Write a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.