how to protect content?

Can I protect categories for members only? Cause I saw only pages and menu items
How do I protect content from a post? Cause i put before text [ms-protect-content id="1"] here is the text and [/ms-protect-content] after text. And when I go to test membership with option 1 doesn't show me the article only my message that is protected.
I mention that I have istalled plugins: wp-optimize, autoptimize, hummingbird if it matters

  • Dimitris

    Hey there alin,

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

    Can I protect categories for members only? Cause I saw only pages and menu items

    You can do so if you go to Membership 2 -> Add-ons and activate "Category Protection".

    Then navigate to Membership 2 -> Protection Rules and you should be able to see a new tab called "Categories".

    How do I protect content from a post?

    I just re-tested the ms-protect-content shortcode and seems to be working well in my end.
    I just inserted the following content in a test page
    Here's some content
    [ms-protect-content id="10"] Only members of membership-1 can see this![/ms-protect-content]
    and some more content...

    and got the following when I was visiting it via an incognito window.
    Here’s some content
    The content you are trying to access is only available to members. Sorry.
    and some more content…

    Just make sure that you haven't enabled the membership protection for this page.

    Warm regards,
    Dimitris