Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Resolved] Protecting a category but "Yes, Protect this content." is un-checked

Simple Membership Plugin › Forums › Simple Membership Plugin › Protecting a category but "Yes, Protect this content." is un-checked

  • This topic has 14 replies, 2 voices, and was last updated 6 years, 5 months ago by Bookie.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • May 27, 2020 at 2:16 pm #20343
    Bookie
    Participant

    Hi all,
    This question have been asked before but I have to apologise, I still have trouble to understand the logic. :-/

    I have put protection on a category for a membership level.
    When I create a post and later move that post to the protected category, the post have “No, Do not protect this content.” selected.
    Same if I import of bunch of posts to this protected category, all posts are put as “No, Do not protect this content.”

    I don’t understand why a post would belong to a membership level and have the option not to be protected?
    Best regards

    May 28, 2020 at 10:52 pm #20353
    mbrsolution
    Moderator

    Hi,

    Did you read through the following documentation use-category-protection-membership-site?

    I carried out a test in my dev site. I protected the category first, then I assigned the protected category to the post and the following option Yes, Protect this content was enabled with the following message displayed.

    The category or parent category of this post is protected. You can change the category protection settings from the category protection menu.

    Then I saved the protected post without an issue. So I can confirm this feature is working as documented in the document I shared above.

    Kind regards

    May 29, 2020 at 3:43 am #20359
    Bookie
    Participant

    Yes, read it and followed that.

    What happens if you create two new posts, just publishing them without any other selections?
    Visible? (yes)

    Bulk edit them and select your protected category and update.
    Visible? (yes?)

    Check the posts, do they still have the ” No, Do not protect this content.” enabled?

    May 29, 2020 at 10:18 am #20362
    mbrsolution
    Moderator

    Hi,

    What happens if you create two new posts, just publishing them without any other selections?
    Visible? (yes)

    I did this as you requested.

    Bulk edit them and select your protected category and update.
    Visible? (yes?)

    When you say Bulk edit them, are you talking about Post And Page Protection tab?

    Thank you

    May 29, 2020 at 10:46 am #20364
    Bookie
    Participant

    When I have created and published the two new posts, not changing anything regarding protection, membershiplevel or category, I use the “Bulk actions tool” to quick edit the posts.

    https://www.screencast.com/t/NUmmzyHF

    With the bulk edit tool, I change the category and assign them to the protected category.
    When I open each post, they still have the “No, Do not protect this content” selected.

    May 29, 2020 at 11:31 am #20365
    mbrsolution
    Moderator

    Thank you for sharing more information. I just carried out a test and it works for me. I did exactly as you mentioned above and when I check either of the post they are set to

    Yes, Protect this content. was enabled with the following message displayed.

    The category or parent category of this post is protected. You can change the category protection settings from the category protection menu.

    So I can confirm that this feature works in my dev site.

    Does this help you in any way?

    Regards

    May 29, 2020 at 11:43 am #20366
    Bookie
    Participant

    Thanks a lot, great that it works that way.
    Now I am just confused why my site appears like that, not changing the posts to protected. πŸ€”

    May 29, 2020 at 12:10 pm #20367
    mbrsolution
    Moderator

    Hi, something must be interfering with this feature in your site. Try the following troubleshooting steps test-for-plugin-and-theme-conflict-before-posting-an-issue-or-a-bug/. Let me know how you go.

    Regards

    May 31, 2020 at 10:59 am #20373
    Bookie
    Participant

    Hi,
    I disabled all plugins on the site, except for the membershi plugin and changed to Twenty Twenty theme.
    Still the same behaviour.

    —
    Trying once again, this time installing a new WordPress site.
    Only the membership plugin and the Twenty Twenty theme.

    Making test posts.
    Creating a new category.
    Assigning a few posts to that cateogry.
    Creating a new membership level.
    Assigning the new membership level to the new category.

    The posts in the new, protected category have the correct membership level but “Yes, Protect this content.” is not selected. Blog post content is visible.

    Checking “Yes, Protect this content.” and updating the post, the blog post content is not visible anymore.

    –> Did I miss something in the setup?
    Here is a short video on Dropbox: https://www.dropbox.com/s/u7u34lsp93m7qb9/Membership.mp4?dl=0

    Slightly confused.

    May 31, 2020 at 11:33 pm #20375
    mbrsolution
    Moderator

    Hi,

    The posts in the new, protected category have the correct membership level but β€œYes, Protect this content.” is not selected. Blog post content is visible.

    That is correct.

    Checking β€œYes, Protect this content.” and updating the post, the blog post content is not visible anymore.

    That is correct.

    I had a look at the video and I can see the post content protected towards the end of the video. So I am not really sure if I am understanding your question correctly or not.

    Did you follow these instructions first?

    First of all, globally protect the category on your site by selecting “General Protection” from the drop-down box below and then select the categories that should be protected from non-logged in users.

    Next, select an existing membership level from the drop-down box below and then select the categories you want to grant access to (for that particular membership level).

    Regards

    June 1, 2020 at 5:31 am #20377
    Bookie
    Participant

    Hi,
    In the video, around two minutes, the category (not the posts) is protected but the posts are still “No. Do not protect this content” (visible for all visitors).

    In the video, 2:18, I will click on “Yes. Protect this content” and update the post.
    After that, the blog post is protected,

    At 2:40 we se that the post is protected – but that is after my manual selection and saving of “Yes. Protect this content””.

    —
    After what I see, protecting a category does not hide the content from normal visitors.
    Not unless I manually click on “Yes. Protect this content” in each post and re-save them.

    If I am correct in this, with a category with 100 posts, I would have to edit each post and click on “Yes. Protect this content” and re-save each post.

    June 1, 2020 at 5:48 am #20378
    mbrsolution
    Moderator

    Hi,

    I carried out more testing today to make sure it is working. I can confirm that it does work.

    I decided to write a tutorial to help those who might run into issues like yourself. Please check the following documentation simple-membership-plugin-category-protection.

    Let me know how you go.

    Thank you

    June 1, 2020 at 6:29 am #20379
    Bookie
    Participant

    Thank you for your patience. πŸ™‚
    Very thorough guide.

    Argh, I see where I was lost: it is a two-step action:
    a) protect the category
    b) assign membership levels

    Thank you so much, I took for granted that choosing the membership level from the drop-down menu and selecting which category would ALSO protect the category (my step just assigned the membership level).

    Once again, thanks for helping out!πŸ™

    **
    May I just ask a last question: is there any specific thought making this in two steps? (protect and then select level).
    Is there any scenario where we would like to protect a category without adding a membership level?
    **

    All the best

    June 2, 2020 at 7:11 am #20388
    mbrsolution
    Moderator

    Hi,

    May I just ask a last question: is there any specific thought making this in two steps? (protect and then select level).
    Is there any scenario where we would like to protect a category without adding a membership level?
    **

    Unfortunately at present this is how the protect the category function works.

    Kind regards

    June 2, 2020 at 11:32 am #20392
    Bookie
    Participant

    Alright, thanks for your kind help!
    Cheers

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy