Title: Shortcode Not Working
Last modified: December 12, 2021

---

# Shortcode Not Working

 *  Resolved [rbarron](https://wordpress.org/support/users/rbarron/)
 * (@rbarron)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/shortcode-not-working-399/)
 * This is not working. What can I do to get one for to display for logged in users
   and another for those who are not logged in.
 *     ```
       [content_control logged_out=”1″]
       [gravityform id="1" title="false" description="false"]
       [/content_control]
       [content_control logged_out=”0″]
       [gravityform id="2" title="false" description="false"]
       [/content_control]
       ```
   
 * The pw for the page is ‘demo’.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcode-not-working-399%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [mark l chaves](https://wordpress.org/support/users/mlchaves/)
 * (@mlchaves)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/shortcode-not-working-399/#post-15156539)
 * Hi [@rbarron](https://wordpress.org/support/users/rbarron/),
 * ​Thanks for reaching out. We’re sorry you’re seeing an issue with the shortcode.
 * Can you do us a favor? Please create a new test post or page, then copy and paste#
   1 and #2 from below into that new post or page.
 * 1) [https://gist.github.com/marklchaves/230ba030334d9f3984cedd71e1dc9193#1-for-logged-out-peeps](https://gist.github.com/marklchaves/230ba030334d9f3984cedd71e1dc9193#1-for-logged-out-peeps)
 * 2) [https://gist.github.com/marklchaves/230ba030334d9f3984cedd71e1dc9193#2-for-anyone-logged-in](https://gist.github.com/marklchaves/230ba030334d9f3984cedd71e1dc9193#2-for-anyone-logged-in)
 * Hit **Publish**, make sure Content Control is _active_, and re-test.
 * If that works, then Content Control shortcode should be working fine.
 * Next, please replace the test content with your Gravity Forms shortcode and re-
   test.
 * Please let us know how that goes.
 * Cheers!
 *  Thread Starter [rbarron](https://wordpress.org/support/users/rbarron/)
 * (@rbarron)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/shortcode-not-working-399/#post-15156575)
 * Appreciate the prompt response.
 * Your test worked!
 * It only works with the gravity forms shortcodes WHEN the message option is included(
   even if the message is empty).
 * Appreciate the help, thank you.
 *  Plugin Support [mark l chaves](https://wordpress.org/support/users/mlchaves/)
 * (@mlchaves)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/shortcode-not-working-399/#post-15161093)
 * Hey [@rbarron](https://wordpress.org/support/users/rbarron/),
 * Ah, good to know.
 * You’re very welcome. We’re glad that it’s working now.
 * Have a great day 🙂

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

The topic ‘Shortcode Not Working’ is closed to new replies.

 * ![](https://ps.w.org/content-control/assets/icon-256x256.gif?rev=2968535)
 * [Content Control - The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More](https://wordpress.org/plugins/content-control/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-control/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-control/)
 * [Active Topics](https://wordpress.org/support/plugin/content-control/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-control/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-control/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [mark l chaves](https://wordpress.org/support/users/mlchaves/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/shortcode-not-working-399/#post-15161093)
 * Status: resolved