Hide posts from frontpage user role based
-
I’m building a wordpress website (doh). The website is login only and you cannot register (invite only). I created different user roles. Some user roles are not allowed to view specific posts or pages. They receive a error that the content is blocked. All the new post show up on the frontpage. I don’t want users to see the blocked posts. They still see the title of the post and the blocked massage.
I want to skip showing the posts if the posts are blocked. The posts need to be visible on the front page to the roles that are not blocked. So I can not just hide a post.Example: “User role A” may not see “post 1”. “User role B” may see “post 1”. The next time: “User role A” may see “post 2”. “User role B” may not see “post 2”
Simple said: I need to hide posts on the frontpage based on the user role.
Anyone have suggestions? I have tried many plugins but none of them seem to do what I want.I only want to hide the blocked massages on the frontpage.. the rest of the website I don’t really care if the user experiences a blocked massage.
- The topic ‘Hide posts from frontpage user role based’ is closed to new replies.