WordPress Restricted Site Access (SAR) - Use Case - How to Build Drip Content Posts


Use Case – How to Build Drip Content Pages.

Back to User Guides

Note: This guide requires:

Video Use-Case


Introduction

WordPress Restricted Site Access is a plugin that allows you to create a membership and content restriction solution. The content restriction is based on user WordPress roles and if they are logged in or not. Choose which post type, category or even specific page should be locked – and to whom. 

Use Case Front-End

Example of the temprorary restriction to certain post category - Content Control WordPress
Example of the temprorary restriction to certain post category

Use Case Assumptions

In this example use case guide we will consider how to build drip content pages. It means that newbie users will not be able to access some post or pages, or event post/page categories for some definite period of time after they registered.

We consider that you have already bought the plugin, but not installed it yet.

It follows:

Installing the Plugin

The process is the same for all CM plugins and add-ons.

CreativeMinds Customer Account Dashboard - Downloads tab
CreativeMinds Customer Account Dashboard
  • Download the plugin from your customer dashboard.
  • Log in to WordPress and navigate to the WordPress Admin → Plugins settings.
  • Click on Add New.
  • Activate it and add the license.

Learn more: Getting Started - Plugin Overview


How Content Restriction Works

The WordPress Restricted Site Access plugin allows users to create a membership and content restriction solution. The content restriction is based on user WordPress roles and if they are logged in or not.

Front-End Examples

Examples of full and partial content restriction - Page Restriction WordPress
Examples of full and partial content restriction

The content restriction can be set by the following options:

  1. Specific URL - You can restrict access to specific posts. This can also include URL parameters. 
  2. Specific Post / Page - You can restrict access to a post, page or any custom post type by editing the post and using the post metabox to restrict access.
  3. Specific Permalink - Some plugins create the fly pages which are only represented by permalink. In such case you can use the admin bar edit option to define content restriction.

    Editing the page - WordPress Restrict Content
    Editing the page
  4. To all posts by type - Using the plugin setting, you can restrict content across all posts of a certain type.
  5. To part of the content - Using a shortcode, you can limit access to part of the content in a post or page only to specific roles, user id or user action.

Let's start first with the general setting up the plugin and then consider content restrictions methods step by step.

Setting Up

Navigate to Admin Dashboard → CM Site Access Restriction Pro → Settings.

Navigation to the plugin settings - Content Gate
Navigation to the plugin settings

Head to the General tab.

General settings tab - Content Dripping WordPress Plugin
General settings tab

Here we need just a few settings for configuring drip content pages.

Access denied due to time restrictions - You can select the page where the user will be redirected after he tries to visit a restricted page outside of an approved time. 

Time restriction option - Tiered Membership
Time restriction option

TIP: Create a Page For Temporarily Denied Access

You need to create a page, where the user can see a message that the access is temporarily denied for some period of time.

Creating page for temporarily denied access - WordPress Restricted Site Access
Creating page for temporarily denied access

Restriction type - Here you can choose how much of the content is restricted:

Choosing the global restriction type - Content Control WordPress
Choosing the global restriction type
  • Restrict full content - Restrict all content on the page.
  • Restrict partially content - Showing some percentage of the content with a fade effect and message (configurable in the labels section). The percentage is defined lower in the option Restrict partially content percentage.

    Example

    Example of the partial content restriction with the fade effect - Page Restriction WordPress
    Example of the partial content restriction with the fade effect
  • Restrict content with shortcode only - Show all content except those parts that are restricted by the [access] shortcode. Learn more about this shortcodeNote: This restriction type has no affect when you restrict the access for newbie users for some period of time after registration. If you choose this option, then full content will be restricted for newbie users.

Note: The setting Restriction Type can be overridden for every post type in the next tab Post Types, and it can also be overridden for every specific post or page in the metabox.

Restrict partially content percentage - Set the percentage of how much content should be displayed when the option Restrict partially content is enabled. Default value is 20%.

Choosing how much % of the content will be shown with the partial content restriction method - WordPress Restrict Content
Choosing how much % of the content will be shown with the partial content restriction method

Restricting Posts, Pages and More

There are a few ways, how you can restrict a page for some period of time after registration. Let's start with restricting all posts of a definite type.

Head to the next tab of the settings - Post Types.

Post types settings tab - Content Gate
Post types settings tab

In this section you can restrict all posts which belong to a custom post type, as well as restrict access to the general pages and posts. There is a long list of items that you can restrict.

For our use case, to restrict access to posts for some period of time for newbie users we need the following options:

  • Access denied X days from registration - Access is restricted for users that registered less than X days ago. Let's set here the value "14". It means, if the user was registered less than 14 days ago, he won't be able to access all WP posts on your site until that time passes.

    Limiting the access to site posts to newle registered users for 2 weeks - Content Dripping WordPress Plugin
    Limiting the access to site posts to newle registered users for 2 weeks
  • Restriction type - Here you can optionally choose the type of restriction between Global settings or 3 options that override options in the General tab of Settings.

    Overriding the global restriction type - Tiered Membership
    Overriding the global restriction type

At the end of configuring the settings click the Save button to save the changes.

Saving the changes - WordPress Restricted Site Access
Saving the changes

Restricting Specific Post

You can control the access to specific pages or posts using a metabox located in each page or post once editing the post.

You can edit the posts or pages in two ways.

1) Open the list with posts, for example, and click the  Edit button by hovering on the needed post:

Post edit link on the back-end - Content Control WordPress
Post edit link on the back-end

2) Another way can be useful, when some plugins create the fly pages which are only represented by permalink. In such case you can use the admin bar edit option to define content restriction:

Post edit link on the front-end - Page Restriction WordPress
Post edit link on the front-end

In both cases you can find the metabox Site Access Restriction. It looks the same as in Settings → Post Types tab, and it works the same. The difference is - in plugin Settings you define global settings for all posts of chosen type, and in metabox you can configure Access Restriction for specific post that overrides global settings. And here you can also choose the option Follow global options for this post type. So, let's set here the value "21" in the Access denied X days from registration. As a result, this post will be not available for newbie users 7 days longer than other posts that are restricted for 14 days.

Post metabox for overriding global restriction settings - WordPress Restrict Content
Post metabox for overriding global restriction settings

When you change the settings don't forget to click the button Update or Publish at the top right to save the changes.

Restricting Definite Categories

Using this plugin you can restrict access not only to some definite post types or to specific posts, but also to the post categories.

It can be done via setting the restriction access to specific URLs on your site. Let's consider this use case on the example of restricting a category about Rock music.

Example of posts that belong to the specific category - Content Gate
Example of posts that belong to the specific category

Permalinks Settings

First, to restrict some definite post categories, you need to make sure that your permalinks have the right structure for this. Navigate to Admin Dashboard → Settings → Permalinks.

Navigation to the permalinks settings - Content Dripping WordPress Plugin
Navigation to the permalinks settings

There you need choose Custom Structure of permalinks and set Available tags in the following consequence: %category%, then %postname%.

Changing the permalink structure - Tiered Membership
Changing the permalink structure

As a result, every post will have the following format: your-site.com/category/post

Front-end example of the post permalink that belongs to certain category - WordPress Restricted Site Access
Front-end example of the post permalink that belongs to certain category

It will help us to restrict all posts that belong to the definite category.

Restricting by URL Filter

To add a URL filter, navigate to Admin Dashboard → CM Site Access Restriction Pro → URL Filters

Navigation to the URL filters dashboard - Content Control WordPress
Navigation to the URL filters dashboard

Click the Add new filter button.

Adding new URL filter - Page Restriction WordPress
Adding new URL filter

There you can see the field where you can put needed URL. You need to enter the exact URL address you want to match without the hostname part. And in our use case we need to add a wildcard * to restrict all posts that belong to this category, like you can see on the screenshot below.

Restricting the access to the specific category by its path - WordPress Restrict Content
Restricting the access to the specific category by its path

The Access Restriction settings for URLs are the same as in the previous cases and they override global settings. So let's just set here the amount of days in the Access denied X days from registration

You can add as many URLs for restricting as you need using the Add new filter button, and don't forget to click the Save filters button to save them. You can also remove not needed filters using the button Delete.

End Result

Following instructions found in the plugin and guides, you should be able to build drip content pages. 

Use Case Front-End

Example of the temprorary restriction to certain post category - Content Gate
Example of the temprorary restriction to certain post category

More information about the WordPress Restricted Site Access plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.