Skip to content
Ian Thompson
Share
Explore
Blog Articles

Memberstack Shortcodes

I'm using Memberstack for a new website I'm building for a colleague. Memberstack for the most part has been quite easy to use but there have been a few head scratching moments when I've had to hunt down codes....
There is no single data value to hide content from non-members but show it to all members of differing memberships - you have to choose a membership name. So I have an additional members only group defined that all memberships have access to and this allows me to to hide elements from non-users whilst showing it to the rest of the memberships.
These are the basic hide and show categories:

Hide content from all active members

Hide elements from all active members - you can use this for hiding stuff like sign up links or other elements that signed in members don't need to see
name: ms-hide-element
value : true
This is supposed to be used to hide sign up links once a user logs in, but works well in hiding stuff in the interface from all logged in users
name: data-ms-content
value : !members

Show content only to users in the stated membership

Use this to hide elements from users that are not in the membership stated in the value field. Anything in this element wil only be visible to the membership stated.
name: ms-hide
value : membership-name

Hide content from users in the stated membership

Use this to hide elements from users that are in the membership stated in the value field.
name: ms-hide-member
value : membership-name


Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.