Limit access to posts and pages – simple conditions
After you’ve created a level, configured its options and added some members, it’s time to make it restrict content on your site.
Good to know: To prevent lock out, administrators will by default have access to all content regardless of the restrictions created.
Restrict Blog Page and All Posts
User is logged into the admin panel as an Admin.
- Go to the Edit Level screen for the selected level in User Access > Access Levels
- In the Conditional Logic box, click on the “– Select content type –“ dropdown and select Posts
- In the newly added condition, you’ll see an input field saying “All Posts / Blog Page”. Leave it empty.
- That’s it, the Blog page and all single posts will now be inaccessible to users without this level.
Good to know: Conditions are saved automatically on change, you do not need to click Update for the level.
Restrict Pages or Post Types
User is logged into the admin panel as an Admin.
- Go to the Edit Level screen for the selected level in User Access > Access Levels
- In the Conditional Logic box, click on the “– Select content type –“ dropdown and select Pages or any custom post type
- In the newly added condition, click on the input field to select individual items. You can search by typing.
- That’s it, the post type items you selected will now be inaccessible to users without this level.
Note: Links that point to restricted content will not be hidden automatically. You can show or hide nav menu items or custom sidebars to select levels.
Condition Settings
If you click on Settings in the lower right corner of a condition group, you will see some extra options:
- Singulars and Archives
- Target content in a specific state, such as all single posts, the Blog page (posts archive), or both.
- Negate conditions
- Limit access to all content but the selected.
- Auto-select new children of selected items
- If a page, category, or other hierarchical item has been added as a condition, any future children/sub-items will be added as conditions as well.
- Unlock Time for new members
- Select how long a user needs to be a level member, before the content gets accessible. This is also sometimes referred to as drip content.