• Resolved naguibihelek

    (@naguibihelek)


    I have a blog post that is protected by a Category level, and I want to have parts of the contents displayed to unregistered visitors to the site. So,
    1. I added this to it as a test and it did not work. I get page “No Results Found” on the blogs page.
    2. I also set option to Show Excerpts to Non-Members? and still get same thing.

    [membership level=”0″]
    Will show up for non-members and non-logged in site visitors.
    [/membership]

    Any thoughts?
    Nagui

Viewing 2 replies - 1 through 2 (of 2 total)
  • If the post is already protected based on the Category then I think that takes precedence and none of the membership shortcodes will override it on the post. Would it work for this post not to be in that protected category? If so then you can use the shortcode membership level=x at the top of the page to protect that content to just members, then use the level=0 one where you want to show to site visitors.

    If this post must be in that category based on how you’re organizing your content, then you can do a one-off snippet to show the whole thing using pmpro_has_membership_access_filter and then you can put the shortcodes on the post as above.

    • This reply was modified 7 years, 4 months ago by essaysnark.
    Plugin Author Andrew Lima

    (@andrewza)

    Hi @nagui,

    Thank you for using Paid Memberships Pro.

    @essaysnark is correct, the category protection takes precedence over the shortcode. You are able to remove the category protection from the post and use the shortcode [membership level="1"] ..content for members.. [/membership] to control the content for the member only.

    I hope this makes sense, please let me know if you have any further questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using shortcode for member level=0 doesn’t work’ is closed to new replies.