My Customer asked me to create a plugin to restrict the author to post in only one category, that’s time i wrote this plugin, but my friend said to me that it need to add multi-category for multi-purpose, and suitable for all my customers !
Download this plugin from WordPress.org !
My plugin will help you to restrict author in your blog post in just some category, see the screenshots below:


If you want to remove the restriction from an author account, then simply visit their user profile again and scroll down to the Restrict Author Post to a category section. This time you need to unselect all categories to remove the restriction.
*> New update in Version 2.1, now you can restrict author using his/her own file only in Media Page:

I hope this article helped you restrict authors to specific categories on your WordPress site.
If you like my plugin, please make a donation !
Hi man!
I like your plugin “restrict author posting” but i want to suggest you upgrades:
+ The user can post to specific category you select to restrict. (ok)
– but… The user can view other categories posts and edit them without problem.
– but… The user can view all created pages and can edit them!
In resume: Can you upgrade this plugin to simply restrict a specific user to create and edit posts in a single (or more) categories WITH limitation to view others posts from others categories and to “hide” pages that are not allowed to see and edit.
I hope this can help you.
Greetings.
Marcelo Almada
Dear Sir !
Thanks you so much for suggesting me some of feature !
Because before you install this plugin, authors ( i mean user with Author Role ) maybe posted something to other Category, so they must be allow to edit or delete them !
To avoid User Edit or delete other Post, you may reduce User Role in user’s profile to “Author” or “Contributer” to simply restrict him/her from editing other user’s Post !
If i am wrong, please tell me more, i simply add small code to plugin to suite your need !
Thanks You !
Hi,
I enabled the module in WP 4.3.1, and it seems to have bug with the wp-admin/profile.php, because I cannot use the “Generate Password” button, and in inspect element, there are many jquery errors. After disabling it, the button worked again.
Please kindly check and fix it. Thanks for an awesome module!
Oh thanks, i will fix it now ! Thanks !
This plugin works pretty good up to the moment, when the user that was restricted to a category creates a post, without a check-mark on that category and presses the update button. In this case the post will be published in the default category that this user didn’t have credentials to publish in.
Maybe there are more solutions to this problem, but I would like to mention 2 here:
1. Disable the update button unless the user chooses a category.
2. If user is restricted to a category, the first one in the list will be chosen as a default for that user if he didn’t chose the category he wants to publish in.
Dear my friend, i have update my plugin, please download the lastest version and active it again !
Thanks you very much !
Thanks for suggesting ! my friend ! i will do it if anything is okey !
Dear my Friend !
I have just Updated my plugin and thanks so much for your Idear ! I will add your name to Contributer list !
Thanks again !
It is perfect. Thank you very much. Works like a charm. No need of adding my name on the contributors list. I was just testing it, nothing more.
hi Matey! I love this pluggin, I think its awesome! I found a small bug, If I assign a category to a user, its amazing, but If i delete the category, an error pops up. If this is a bug you might be able to fix il send a donation off to you matey 🙂
Okey my friend ! i will update shortly ! Thanks so much !
Dear my friend !
I have just updated my plugin, so now the bug is remove, delete category will cause no error in Author’s profile !
Thanks !
Hello Jam. I did try to donate to your plugin, but couldn’t find the link. If I try the link on the plugin menu of my cPanel, it will bring me here (https://www.jamviet.com/2015/05/restrict-author-posting.html) with no Donate button.
Ash
I have never received a donation, so if you make, this is the first time :D, my email on Paypal is mcjambi@gmail.com, maybe i need a button !
Thanks friend !
I just sent you a donation matey 🙂 superb work! and yes make a paypal button! Your pluggin rocks!
Hi, I have the same problem with WP 4.4 like this guy:
https://wordpress.org/support/topic/no-entries-show-in-categories
Do you have a solution for it?
I will fixed it soon, thanks so much my friend !
Hello Jam,
Excellent plugin, congratulations! I have one question, looks like it dosen´t work with wcvendors, right?
Hi Jam,
I just installed WP 4.5 and installed your plugin only. When I go to look up users, I am unable to see any plugin. Also there is no longer a button to update user profiles and generate new password button does not work. When I deactivate the plugin it works again. Please help.
Thank you
I downloaded and installed this plugin and am recieving an error msg of
Fatal error: Call to undefined function mb_convert_encoding() in /home/pbnr/public_html/wp-content/plugins/restrict-author-posting/restrict-author-posting.php on line 135
Can you tell me what I need to do to fix this?
Because this function is in PHP version 4.0.6 and php 5, php 7, so if you install WordPress in older it will get error
Good, you could create a shortcode so that it can integrate with the plugin FrontierPost because with frontierpost assumes command, perhaps putting the shortcode in the form page Frontierpos the problem is solved.
Thanks in advance.
Buenas, podría crear un shortcode para poderlo integrar con el plugin de FrontierPost, ya que con frontierpost asume el mando, quizás poniendo el shortcode en la página del formulario de Frontierpos se soluciona el problema.
Gracias de antemano.
Great plugin
i found a bug in your plugin, it has compatibility issues with visual composer..
posts are not sorted perfectly using your plugin and all posts are shown on site http://coxs.macrisondev.com.au/stores/ when we try to narrow down posts using categories
please solve the issue
Hello,
I have activated your plugin the settings are not showing up in the user profile. What could be happening.
Dear my friend !
Sorry for that, i have tested and everything seem to be ok, so can you tell me more infomation ? Which version WordPress are you running and how many plugins do you have ?
We are running the latest WP plugin. We have running about 25 plugins Some of which are part of a package for our theme. When I use Author Category plugin, their settings show up in the user profile. However, I do not see any of your plugin’s settings popular under that user info.
Is there a way for you to look into this?
Thanks so much
Dear Jam,
I appreciate very much your plugin (just a little donation has already been made), but I have a special request for you. As I have to copy lots of users from a SQL server to WP mysql table, and While I do it I create a separate category for each user and I would like each user could post only inside his own category. I made a script to move the users but I do not know how to add the flag “Restrict the categories in which this user can post to” automatically. Can you please suggest me where the flag is located (in a MySql table ? if so which one and where ?). Or isthere a tool to make a massive connection between user and its own category ? Thanks and best regards. Leonardo Pesaresi – Italy
Sorry for late reply ! I will send you an email after an hour later ! Thanks for your donation !
hello when i use it i get this error message
Call to undefined function mb_convert_encoding() in /home/joeyspeaks/public_html/wp-content/plugins/restrict-author-posting/restrict-author-posting.php on line 145
Dear sir !
Thanks you for reporting. This error appear because of lack of funtion in PHP old version ! I will fixe it soon !
Hello,
We are trying to use this plugin on a WPMU install. The tool only works for network admin level. Is there any way to have this available to a site admin?
Thank you!
Thank you and congratulations. This plugin meets my needs exactly. I would simply like to be able to assign the same authorized categories to several authors at once, in a single operation. Perhaps an idea? Thank you very much.
Hi !
No way to edit posts (planed, published…) after installation of your plugin. 🙁
great plugin!! Have you got the idea to do the same but for comment, so user will only read comments from his categories.
Hex Jam,
I like your plugin, because it is exactly what I need. It would be nice to have the categories hierarchy even when there is a restiction.
For Example:
Normal view ist (without the leading checkboxes)
parent-item
..child-item 1
..child-item 2
view with restriction
checked item (maybe child-item 2)
parent-item
child-item 1
Parent and children are on the same level, sort-order is lost. So I’m afraid to confuse my users …
Thanks and best regards
Stefan
Please forget my previous post. It seems to be the normal WordPress behaviour. Looks strange to me, but is not your assignment.
Sorry and best regards
Stefan
btw: I could send you .po/.mo files for German translation if you like.
Hi,
your plugin is not working. Will you fix it?
I have tested in newest version of WordPress and there’s no error ! So can you send me some bug to mcjambi@gmail.com ?
Hello, congratulations on this great plugin. But somehow it doesn’t work properly with the plugin “Events Made Easy”. Here I can select all categories and edit existing entries in other categories. Many thanks in advance
Hi,
Not sure I’m posting my comment in the right place since I cannot understand the language the website uses. Any way, you have created a wonderful plugin. It took me a while to find it. Unfortunately, it contradicts in functionality with Polylang (Version 2.2.5, By Frédéric Demarle). My website is multi-lingual and once I install your plugin the functionality of Polylang is disrupted. If I post in language 1, publish it, then I click on + in Polylang to publish the same post in another language, the link is lost! The posts are no longer related.
Hello. I’m trying your plugin and it work very well! Thank you for your job.
Before to use it in production, I would know if you still update it? If yes, I will donate you of course.
Yes ! I am still update plugin !
Hi! Seems the plugin is untested with 4.9.4. Line 76 in restrict-author-posting.php is failing:
if ( ! is_user_logged_in() )
With this line in the code, WP 4.9.4 responds with a 500 Server error. If you take out this conditional with the call to is_user_logged_in(), WordPress loads.
Any plans to update? Thanks.
See here: https://wordpress.org/support/topic/plugin-crashes-wp-4-9-4/
This was a great plugin. Why are you no longer developing it?
Good evening.
I tried to download your plugin but it’s no more available. Is there a way to find a copy of the code?
Thanks