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] Partial Protection using ShortCode

Simple Membership Plugin › Forums › Simple Membership Plugin › Partial Protection using ShortCode

Tagged: partial protection, shortcode

  • This topic has 5 replies, 3 voices, and was last updated 5 years, 6 months ago by tushar.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • October 1, 2020 at 8:09 pm #21025
    tushar
    Participant

    Hi,

    I have just started using your plugin, but am a bit confused on the correct shortcode to be used…

    On one of my event pages, https://indofrenchhub.com/event/rencontrespedagogiques/ – have inserted this shortcode:

    [swpm_protected for=”5″ custom_msg=”This content is restricted to paid registrants only. If you have registered, please Log In to Download the Presentation”]
    <h3 style=”text-align: center;”>Download Les-pronoms-neutres.pdf</h3>
    [/swpm_protected]

    This works fine when the page is viewed by a level 5 member who has logged in – the download button is properly displayed.

    However, for all others, the custom message is not displayed, and instead:

    (A) when the page is viewed by a logged-in non-level 5 user (example Subscriber Level 4) the following message is displayed:
    //Your membership level does not have permission to view this content.//

    (B) When the page is viewed by a non-logged in user the following message is displayed:
    //This content is for members only.//

    Please assist, why does the custom message not get displayed to the others.

    Thanks.

    October 3, 2020 at 6:25 pm #21046
    LisaS
    Participant

    I’m also having trouble with the partial protection short code. My custom messages are not showing at all. Please see https://parentingaces.com/update-on-2021-jr-comp-changes/ as an example. What am I missing here???

    October 10, 2020 at 6:53 am #21139
    tushar
    Participant

    Hi there

    No reply received to this query. Please assist.

    October 10, 2020 at 7:50 am #21140
    tushar
    Participant

    Ok i figured out the error, i used ” instead of ‘

    [swpm_protected for=”5″ custom_msg=”This content is restricted to paid registrants only. If you have registered, please Log In to Download the Presentation”]
    <h3 style=”text-align: center;”>Download Les-pronoms-neutres.pdf</h3>
    [/swpm_protected]

    October 10, 2020 at 9:17 pm #21142
    mbrsolution
    Moderator

    Hi, is your issue resolved?

    Regards

    October 11, 2020 at 5:59 am #21151
    tushar
    Participant

    Yes – it worked out
    marking it closed

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 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