Title: admin restriction
Last modified: October 28, 2021

---

# admin restriction

 *  Resolved [palm89](https://wordpress.org/support/users/palm89/)
 * (@palm89)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/admin-restriction-2/)
 * Hi,
    I’m working on a website where: – logged out users should be able to visit
   all the pages; – the admin (logged in user, obviously) should be able to visit
   all the pages; – logged in users with role “employer” should be able to visit
   the pages dedicated to employers only; – logged in users with role “candidate”
   should be able to visit the pages dedicated to candidates only.
 * At the moment, everything works except the admin part. I have tried all the combinations
   but with no success. The only way to make the admin part work is to place it 
   on top, but then logged out users won’t see anything anymore.
 * From highest priority to the lowest, my pyramid is:
    – logged out user restriction–
   admin restriction – logged in employer restriction – logged in candidate restriction
 * How can I achieve my objective?
 * Thank you

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [mark l chaves](https://wordpress.org/support/users/mlchaves/)
 * (@mlchaves)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/admin-restriction-2/#post-15018114)
 * Hey [@palm89](https://wordpress.org/support/users/palm89/),
 * ​Thanks for reaching out. We’re sorry your restrictions aren’t working the way
   you want.
 * Let’s assume you have an **employer** and a **candidate** tag for your posts.
   And, you’ll give employer-only posts the **employer** tag and candidate-only 
   posts the **candidate** tag.
 * From reading your use case, we think you only need 2 restrictions:
 * 1) Only an **employer** or **administrator** can see posts with the **employer**
   tag.
 * 2) Only a **candidate** or **administrator** can see posts with the **candidate**
   tag.
 * Here’s a visual of what we set up.
 * [https://share.wppopupmaker.com/xQujAOdL](https://share.wppopupmaker.com/xQujAOdL)
 * Note that we need to add the administrator role to both restrictions because 
   you want them to see all posts.
 * We don’t need to have a separate restriction for administrators to see all pages
   because that’s the WordPress default for admins.
 * We don’t need to have a separate one for logged-out folks either because the 
   default is everyone can see public posts.
 * We hope that helps.
 * Let us know how that works out for you.
 * Have a great weekend 🙂
 * Mark
    -  This reply was modified 4 years, 7 months ago by [mark l chaves](https://wordpress.org/support/users/mlchaves/).
 *  Plugin Support [mark l chaves](https://wordpress.org/support/users/mlchaves/)
 * (@mlchaves)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/admin-restriction-2/#post-15034790)
 * Hey [@palm89](https://wordpress.org/support/users/palm89/),
 * We’re going to close this thread since we haven’t heard back from you.
 * Feel free to post a new issue or contact us directly if you need help with anything
   else.
 * [https://code-atlantic.com/contact-us/](https://code-atlantic.com/contact-us/)
 * Cheers 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘admin restriction’ is closed to new replies.

 * ![](https://ps.w.org/content-control/assets/icon-256x256.gif?rev=2968535)
 * [Content Control - The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More](https://wordpress.org/plugins/content-control/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-control/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-control/)
 * [Active Topics](https://wordpress.org/support/plugin/content-control/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-control/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-control/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [mark l chaves](https://wordpress.org/support/users/mlchaves/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/admin-restriction-2/#post-15034790)
 * Status: resolved