Title: restrict access using only shortcode
Last modified: October 27, 2016

---

# restrict access using only shortcode

 *  Resolved [shantzg001](https://wordpress.org/support/users/shantzg001/)
 * (@shantzg001)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/restrict-access-using-only-shortcode/)
 * Hi
 * I’m trying to restrict content to few user roles using only shortcode without
   creating any levels. Is this possible?
 * I installed/activated the plugin and add the code like below to a page:
    [restrict
   role=”editor” page=”1″] Content [/restrict]
 * But what’s happening is that the “Content” is hidden and page 1 is displayed 
   for all users including editors. Only admins are able to see “Content”.

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

 *  Plugin Author [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * (@intoxstudio)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/restrict-access-using-only-shortcode/#post-8389414)
 * Thank you for reporting this.
 * What happens if you use another role but editor? And if you leave out the “page”
   property?
 *  Thread Starter [shantzg001](https://wordpress.org/support/users/shantzg001/)
 * (@shantzg001)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/restrict-access-using-only-shortcode/#post-8391626)
 * The same issue persists if I use any other role.
 * If I leave out the “page” property, then I just get a blank page instead of content.
 *  Plugin Author [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * (@intoxstudio)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/restrict-access-using-only-shortcode/#post-8425058)
 * I will look into this. Are you using any plugin to edit the built-in roles in
   WordPress, or any other membership/restriction plugin?

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

The topic ‘restrict access using only shortcode’ is closed to new replies.

 * ![](https://ps.w.org/restrict-user-access/assets/icon-256x256.png?rev=1815922)
 * [Restrict User Access - Ultimate Membership & Content Protection](https://wordpress.org/plugins/restrict-user-access/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restrict-user-access/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restrict-user-access/)
 * [Active Topics](https://wordpress.org/support/plugin/restrict-user-access/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restrict-user-access/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restrict-user-access/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/restrict-access-using-only-shortcode/#post-8425058)
 * Status: resolved