Title: Shortcode Guidance
Last modified: August 30, 2016

---

# Shortcode Guidance

 *  Resolved [Ben Heath](https://wordpress.org/support/users/btheath/)
 * (@btheath)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/shortcode-guidance/)
 * I love the plugin, especially for the shortcode usage. Restricting content that
   way has always been a desire of mine.
 * Does this plugin offer a shortcode parameter that will display content to only
   those who are NOT logged in? Meaning, once logged in, the content would be hidden?
   Or do I need to create a new shortcode to do this?
 * [restrict logged_in=”false”]
 * Or
 * [restrict logged_in=”true”]
 * I know how to make this, just wondering if it can already be done?
 * Thanks!
 * [https://wordpress.org/plugins/restrict-user-access/](https://wordpress.org/plugins/restrict-user-access/)

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

 *  Plugin Author [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * (@intoxstudio)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/shortcode-guidance/#post-6476049)
 * I know it is not documented anywhere, but the “role” for logged-out users is 
   represented by “0” in the plugin.
 * So you can try this:
 * `[restrict role="0"]`
 * Let me know if that works for you.
 *  Thread Starter [Ben Heath](https://wordpress.org/support/users/btheath/)
 * (@btheath)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/shortcode-guidance/#post-6476056)
 * That did the trick.
 * Thanks for the quick response.
 *  Plugin Author [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * (@intoxstudio)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/shortcode-guidance/#post-6476407)
 * That is great!
 * If you run into more problems, do not hesitate to open a new support thread here.
   And if you like Restrict User Access, please leave a review here: [https://wordpress.org/support/view/plugin-reviews/restrict-user-access](https://wordpress.org/support/view/plugin-reviews/restrict-user-access)

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

The topic ‘Shortcode Guidance’ 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/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Joachim Jensen](https://wordpress.org/support/users/intoxstudio/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/shortcode-guidance/#post-6476407)
 * Status: resolved