Title: member_access shortcode
Last modified: July 2, 2026

---

# member_access shortcode

 *  [michaelcb](https://wordpress.org/support/users/michaelcb/)
 * (@michaelcb)
 * [3 days, 3 hours ago](https://wordpress.org/support/topic/member_access-shortcode/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmember_access-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Hesham Gaber](https://wordpress.org/support/users/heshamgaber/)
 * (@heshamgaber)
 * [2 days, 20 hours ago](https://wordpress.org/support/topic/member_access-shortcode/#post-18954285)
 * Hi [@michaelcb](https://wordpress.org/support/users/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/](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](https://wordpress.org/support/users/heshamgaber/).
 *  Thread Starter [michaelcb](https://wordpress.org/support/users/michaelcb/)
 * (@michaelcb)
 * [23 hours, 59 minutes ago](https://wordpress.org/support/topic/member_access-shortcode/#post-18955812)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmember_access-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/members/assets/icon-256x256.png?rev=3508404)
 * [Members - Membership & User Role Editor Plugin](https://wordpress.org/plugins/members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/members/)
 * [Active Topics](https://wordpress.org/support/plugin/members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/members/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 2 replies
 * 2 participants
 * Last reply from: [michaelcb](https://wordpress.org/support/users/michaelcb/)
 * Last activity: [23 hours, 59 minutes ago](https://wordpress.org/support/topic/member_access-shortcode/#post-18955812)
 * Status: not resolved