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, 20 hours ago by
Hesham Gaber.
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?