Title: Some Shortcode Not Working
Last modified: October 21, 2020

---

# Some Shortcode Not Working

 *  Resolved [ialfrederick](https://wordpress.org/support/users/ialfrederick/)
 * (@ialfrederick)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/some-shortcode-not-working-2/)
 * Hi!
 * I’m trying to insert a set of shortcodes that will enable me to restrict part
   of my post to logged out users.
 * The shortcodes are the following:
 * Opening: [um_loggedin]
    Closing: [/um_loggedin]
 * The content between these opening and closing shortcodes will be hidden to logged
   out users on our site.
 * The opening shortcode works but the closing one isn’t. It’s just being displayed
   as a regular text on our site.
 * I would really appreciate your assistance in making the closing shortcode to 
   work. Thanks and have a good one! 🙂
    -  This topic was modified 5 years, 7 months ago by [ialfrederick](https://wordpress.org/support/users/ialfrederick/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsome-shortcode-not-working-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/some-shortcode-not-working-2/#post-13561053)
 * Remote debugging doesn’t seem to be enabled:
    [https://wordpress.org/support/topic/ad-inserter-support-before-you-ask-for-help/](https://wordpress.org/support/topic/ad-inserter-support-before-you-ask-for-help/)
 * Please check this and also list block numbers to check.
 *  Thread Starter [ialfrederick](https://wordpress.org/support/users/ialfrederick/)
 * (@ialfrederick)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/some-shortcode-not-working-2/#post-13561079)
 * Done! 🙂 It is now enabled.
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/some-shortcode-not-working-2/#post-13561124)
 * A possible problem I noticed is that your are inserting shortcodes inside the
   wrapping div.
    Try to use **No wrapping** style so only the shortcodes will be
   inserted: [https://adinserter.pro/documentation/alignments-and-styles#no-wrapping](https://adinserter.pro/documentation/alignments-and-styles#no-wrapping)
 * Right click and browser debugging functions also do not work.
 *  Thread Starter [ialfrederick](https://wordpress.org/support/users/ialfrederick/)
 * (@ialfrederick)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/some-shortcode-not-working-2/#post-13561241)
 * Hi!
 * I tried to use the No Wrapping style to no avail…
 * I also enabled the right-click function on the site…
 * Do we have other potential solutions aside from No Wrapping?
 * I just noticed that the opening shortcode works, but the closing one ([/um_loggedin])
   isn’t but when I remove the slash (/), the closing works but it doesn’t restrict
   the content between these two shortcodes since I removed the slash…
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/some-shortcode-not-working-2/#post-13561263)
 * Not sure how that plugin processes shortcodes.
 * Try to lower plugin priority (for example to 8):
    [https://adinserter.pro/documentation/plugin-settings#plugin-priority](https://adinserter.pro/documentation/plugin-settings#plugin-priority)
 * This way Ad Inserter will process the content first.
 *  Thread Starter [ialfrederick](https://wordpress.org/support/users/ialfrederick/)
 * (@ialfrederick)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/some-shortcode-not-working-2/#post-13561313)
 * Done, still not working 🙁
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/some-shortcode-not-working-2/#post-13561345)
 * Then the problem is very likely the way you are inserting the shortcodes.
    That
   plugins very likely expects both shortcodes in the conten at the same time.
 * Block 1 is inserted first and Ad Inserter calls `do_shortcode ()` to process 
   shortcodes in the block. It then inserts the actual code generated by that restriction
   plugin.
    Then it inserts block 2 with the closing shortcode but that plugin doesn’t
   see the opening shortcode.
 * Try to prevent processing the opening shortcode during insertion with Ad Inserter:
 * `[ [um_loggedin] ]`
 * No spaces between brackets – it seems the forum processes shortcodes.
 *  Thread Starter [ialfrederick](https://wordpress.org/support/users/ialfrederick/)
 * (@ialfrederick)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/some-shortcode-not-working-2/#post-13561367)
 * If I add the said closing shortcode manually directly on the post editor, it 
   actually works…it detects the opening shortcode even if they are not on the same
   content block…
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/some-shortcode-not-working-2/#post-13569593)
 * Have you tried the suggestion above?

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

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

 * ![](https://ps.w.org/ad-inserter/assets/icon-256x256.jpg?rev=1502039)
 * [Ad Inserter - Ad Manager & AdSense Ads](https://wordpress.org/plugins/ad-inserter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ad-inserter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ad-inserter/)
 * [Active Topics](https://wordpress.org/support/plugin/ad-inserter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ad-inserter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ad-inserter/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Spacetime](https://wordpress.org/support/users/spacetime/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/some-shortcode-not-working-2/#post-13569593)
 * Status: resolved