[Membership 2 Pro] Trying to get Memberships2 to do some basic things, but have problems...

Hello: I need your help to do the following 3 things:

1) I want to protect all posts within a category, but not the category page itself. So for example all the posts inside the category=Cats, but I want users to be able to view the Cats category page. I have thousands of posts, so it is not possible for me to tick each individual post. Instead how can I do this so all new posts within a category are automatically protected?

2) I want to Hide "read more" content on all posts within a specific category.

3) I want to create 2 types of memberships:
a) A Default Membership that is free for users. But Default Membership users are only allowed to view 5 posts every month.

b) A Standard Membership that is a paid membership for 1 year. These users are allowed to view all content for 1 year.

  • Dimitris

    Hello there paperweight,

    hope you're doing good and thanks for reaching us! :slight_smile:

    1) This isn't possible out-of-the-box as both the category page itself and the single posts of the category will be protected, but there's a workaround that you could follow. Here's the steps needed:
    - edit Permalinks and select a Custom Structure with /%category%/%postname%/

    This will make your single post URL to be for example:
    instead of
    while the category page will remain

    - go to Membership 2 -> Add-ons and enable URL Protection
    - go to Membership 2 -> Protection Rules -> URL Restrictions and protect https://domain.dev/category-slug/ which will protect all child-pages

    2) There's no automated way of doing that, so you should manually wrap any content that you want to protect inside post content using the [ms-protect-content] shortcode. You can find complete documentation of shortcodes in Membership 2 -> Help -> Shortcodes

    3a) This isn't possible I'm afraid, you should manually select which are going to be these 5 posts.

    3b) This is the same as #3a, but you can actually use a workaround like #1, so create a Standard paid membership with duration of one year, use the URL Protection add-on in order to protect https://domain.dev/ and all sub-pages will be included as well.

    Hope that was some help!
    Warm regards,

  • paperweight

    Thanks for your response. Ok, here's my feedback:

    1) This doesn't work all the time if a Post is inside more than one category. So basically it only protects is_category, but it ignores in_category. There should be a feature for in_category too.

    2) Ahhhh this is very troublesome and not really possible since we have a site with over 11,000 posts generated over the past 10 years. I wish there was a better way to handle this.

    3) Ahhh, this plugin still seems like it can't be used for what I need it to do. :slight_frown:

  • Oguz

    Hey paperweight ,

    Hope you're well.

    As you said, it looks like Membership 2 can't handle the system as you wish out of the box. Especially your main focus seems like giving limited access to free users and unlimited access to paid users for same posts same category. So you need custom coding for modifying Membership 2 for your exact needs.

    But if you think to change the system a little bit, maybe you can still run the system with Membership 2. Like protect all categories for the paid members and open a new category and not protect that category for free members. Then you can add 5 posts every month for free users to that category. How's that sound?


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.