• I am trying to use [member_access] short codes to make a block on page visible to only some users. When I try the short codes are displaying as part of the page text.

    Is this possible and if so how do I achieve it?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Hesham Gaber

    (@heshamgaber)

    Hi @michaelcb,

    Thank you for reaching out!

    Yes, this is doable. The reason it’s printing as plain text is almost always the tag name — the shortcode is [members_access] (with an “s”), and it needs a closing tag wrapped around the content you want to protect. So something like:

    [members_access role="subscriber"]Only subscribers see this.[/members_access]

    You can also target by capability or specific users with the capability, user_name, user_id, or user_email parameters instead of role. Full list is here: https://members-plugin.com/docs/shortcodes/

    Two other things to check if the tag is already correct on your end:

    Make sure the shortcode isn’t sitting in a Custom HTML block — WordPress won’t process shortcodes there. Drop it into a normal Paragraph block or a Shortcode block and it’ll run.

    Since you mentioned wanting to control a block specifically, there’s actually a more direct route than shortcodes. The plugin includes Block Permissions, which lets you show or hide any block in the editor based on login status, role, or capability — you set it right in the block’s settings, no shortcode required. For a whole block, that’s usually the cleaner way to go.

    Let me know which approach you’re after and I can point you to the exact steps.

    Thanks!

    • This reply was modified 2 days, 18 hours ago by Hesham Gaber.
    Thread Starter michaelcb

    (@michaelcb)

    I would prefer to control access at block level but when I click on permissions I get the message “To protect this block by paid membership or centrally with a content protection rule, add MemberPress.”

    How do I achieve this with Members please?

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.