Sep 072018
 

WordPress Simple Membership Partial Section Protection Addon shows you how to partially protect the content in a post or page for membership levels.

The following instructions show you how to partial protect a section in a post or page. You can also protect a section of a post or page for one or more membership levels. What that means is that the members that belong to the membership level that you specify in the shortcode will be able to view the content. All other members will receive a different message letting them know why they can’t see the protected content.

This tutorial only shows you one particular shortcode combination. By learning how to use this combination you will also understand how the other combinations work. There are many different combinations you can use in the shortcode. The information provided in the link below will show you all the possible combinations currently available in the addon.

What You Need:

WordPress Simple Membership Partial Section Protection Addon

Note: When you want to use partial protection on a post or page, you should not protect the full post or the category that the post belongs to. When you apply category protection for a category, all the posts in that category is fully protected (category protection overrides any other protection in the post).

Step 1 ) Once you have installed the addon you will be able to start to partially protect different sections in your posts and pages. The following image shows you an example of using one of the many shortcodes provided by the addon mentioned above.

The message below is letting you know the following.

  • The section is protected using the shortcode [swpm_protected][/swpm_protected]
  • Only membership level 2 can view the content using the following paremeter for=”2″.
  • The content is formatted nicely using the parameter format_protected_msg=”1″.

[swpm_protected for="2" format_protected_msg="1"]

Whatever content goes here is only visible to members who belong to the membership level 2.


[/swpm_protected]

Step 1-a ) The following image shows you the above shortcode added to a post.

simple-membership-partial-section-protection-addon

Message Displayed For None Members

Step 2 ) The following image shows you the message displayed when visitors land on a page that is partially protected and requires members to log in to view the content.

Message Displayed For None Members

  • This content is for members only.

simple-membership-partial-section-protection-message-for-none-members

Message Displayed For Wrong Membership Levels

Step 3 ) The following image shows you the message displayed when members are logged in but do not belong to membership level 2.

Message For Incorrect Membership Level

  • Your membership level does not have permission to view this content.

simple-membership-partial-section-protection-message-for-wrong-members-level

Message Displayed For Correct Membership Level

Step 4 )  The following image shows you the protected content displayed to a member who logged in and belongs to membership level 2. This is the content mentioned in Step 1 ) above.

simple-membership-partial-section-protection-message-for-correct-members-level

Troubleshooting Tips

Q1 )  I don’t see the protected content when I log into the page?

Solution: Make sure your membership level is set up correctly for the member in question. Please check the following URL WordPress Simple Membership Levels Settings to learn more about membership levels.

==============================

That is how simple it is to protect different sections in a post or page using the addon mentioned above.

If you have any questions please let me know. I will be updating this tutorial from time to time.

Enjoy.

Simple Membership Plugin Tutorial List:

Manuel Ballesta Ruiz is a web developer, Blogger and WordPress Enthusiast.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

The following GDPR rules must be read and accepted:
This form collects your name, email and content so that we can keep track of the comments placed on the website. For more info check our privacy policy where you will get more info on where, how and why we store your data.