The easiest and the most efficient way to restrict read access to some of your content to members only is to separate it as a CPT and exclude read access to this CPT for visitors.

For example, in our hypothetical membership site, we want to hide Advanced tutorials from regular visitors and grant read-only access to Subscribers, and Premium and VIP members.

What members will see
What members will see

What visitors will see
What visitors will see

We will create a Custom Post Type (CPT) for Advanced tutorials and then use the Toolset Access plugin to restict access to this CPT.

Controlling access on a specific Post Type level is one of the most common cases you will deal in membership sites.

Advantages of using a separate CPT to restrict read access

  • All existing and new posts of this CPT will be automatically hidden. No additional action to remember when adding new courses.
  • Archive pages for this CPT will be automatically hidden as well.
  • The posts of the CPT will be automatically excluded from RSS feeds.
  • It will be easier for you to handle related email notifications (with tools such as MailChimp or the MailPoet plugin)

Steps to follow

  1. Go to Toolset -> Post Types and create a new Post Type: Advanced tutorials.
  2. Go to Toolset -> Access Control, choose the Post Types tab.
  3. Locate the Post Type you have just created – Advanced tutorials – and click on its name to expand it.
  4. Uncheck the checkbox field in the Read column for the Guest role.

    Controlling read access to the Advanced tutorial CPT using Toolset Access.
    Controlling read access to the Advanced tutorial CPT using Toolset Access.
  5. Save your changes.

Now only logged-in users will be able to read/view the posts of the Advanced tutorial post type.

What will visitors see instead?

By default, they will see the “Page not found” page (404 error) your theme provides. You can replace this page with your custom template by clicking the edit (pencil) icon.

Other ways to restrcit access

Toolset Access offers you more granular control over read access. Please check the sidebar list of other tutorials how to set advanced read access to content.

Questions?

If you have any questions please not hesitate to post them on the Memebership Sites support page.