How to assign a specific plan to Memberstack modals in WordPress shortcodes?
1. How do you assign a plan to the modal in wordpress shortcodes? I.e. [memberstack_modal type="signup" (PLAN_ID="PLAN_XYZ") text="Member Login"] - PLAN_ID="PLAN_XYZ" does not work in modal unlike signup form.
2. What is the correct way to add protected content according to the short code? I have tried numerous permutations i.e.
[memberstack_protected plan = "plan_id"]
[memberstack_protected access = "members" plan = "plan_id"]
[memberstack_protected access = "plan_id"]
Is this even possible?
Thanks
Comments
5 comments
For 2. I should note that !members and members works
I have resigned myself to forcing users to signup without the modal.
Can I please get an update to question 2? How do you add protected content in wordpress using shortcodes. Cheers.
Would appreciate any update on this issue. The shortcode states that you can gate with plan id but i can't seem to get it working..has anyone replicated this issue?
For anyone else who is facing this issue
you can use the documentation in this article https://docs.memberstack.com/hc/en-us/articles/7403036765339-Show-and-Hide-Individual-Elements-data-ms-content#comments
i.e. solution
<!-- Visible to everyone (SEO-safe intro) -->
<p>This article explains X, Y, and Z…</p>
<!-- Logged out users -->
<div data-ms-content="!members">
<p>
Create a free account to keep reading.
</p>
</div>
<!-- Free members -->
<div data-ms-content="free-plans">
<p>
You’re on the free plan. Upgrade to unlock the full article.
</p>
</div>
<!-- Paid members -->
<div data-ms-content="paid-plans">
<p>
Full premium content starts here.
</p>
</div>
keep in mind that by default the modal does not give a plan --> so you need to also add a no-plans attribute
i.e. <div data-ms-content="no-plans">.
Please sign in to leave a comment.