Hide Posts / Pages depending the user role / Category of the page / post
-
Hello,
I am Currently building a big site for a charity which has multiple departments.
First of I have used “Post Tags and Categories for Pages” plugin to make sure pages have got a category.
and for each of them Category i have a user role that will be part of it.
Now what i need to do is if someone with the user role training logs in, I need them to only see posts / pages with the category training on them, to make sure they do not edit another department pages / posts.
Now the way I have done it for now is to attach a style sheet for each user role, and display none the posts row that do not have the category that user role is set to.
Ofcouse this messes up the pagination and in some cases cause the admin page to show no post on page one and two but posts on page three. Also all it takes is someone to push f12 and they have bypassed the display none.
If anyone know anyway to hock into them admin pages and change the page depending on the user role.
Many Thanks.
Ryan Bowden
- The topic ‘Hide Posts / Pages depending the user role / Category of the page / post’ is closed to new replies.