Title: shortcode should not be executed
Last modified: October 29, 2020

---

# shortcode should not be executed

 *  Resolved [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/shortcode-should-not-be-executed/)
 * Hello Andi,
 * I would like to show some WordPress shortcode in a Enlighter block “Generic Highlighting”.
   On the same page I would show the executed shortcode also. But I do not succeed.
   It works, if I apply it on individually pages. I use `[shortcode](https://codex.wordpress.org/shortcode)`
   in the Enlighter block and `[shortcode]` as a shortcode block.
    If both is on
   one page, the `[shortcode](https://codex.wordpress.org/shortcode)` is executed
   also.
 * How can I show it on one page? Is this possible?
 * Thank you very much.

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

 *  Plugin Author [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * (@andi-dittrich)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/shortcode-should-not-be-executed/#post-13598192)
 * Hi [@hupe13](https://wordpress.org/support/users/hupe13/) ,
 * could you please provide a screenshot from your editor/post ? the forums seems
   to replace some content.
 * within the codeblock, you have to escape the square brackets – otherwise the 
   shortcode is still processed by WordPress
 *  Thread Starter [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/shortcode-should-not-be-executed/#post-13598623)
 * I tried to use two brackets, `[[` or `]]`, this works if I use only Enlighter
   on the page, but not necessarily if I use the shortcode on the same page. Sometimes
   it works, sometimes not.
    Escaping the brackets `[` and `]` with a backslash \
   does not work either.
 * It works, if I have a space after the opening bracket `[` . But if someone copies
   this to apply this – the code doesn’t work without deleting the space.
 *  Plugin Author [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * (@andi-dittrich)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/shortcode-should-not-be-executed/#post-13598731)
 * you cannot escape shortcodes in wordpress with backslashes (the issue is not 
   Enlighter related). just use the html escape sequences `& #91;shortcode& #93;`
 *  Thread Starter [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/shortcode-should-not-be-executed/#post-13603375)
 * I was right, a `[` must be escaped with `[`, see [https://codex.wordpress.org/Shortcode_API#Escaping](https://codex.wordpress.org/Shortcode_API#Escaping).
   But I had a mistake with enclosing shortcodes. Another reason was that an own
   shortcode was faulty, there was a second `do_shortcode` in it.
 *  Plugin Author [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * (@andi-dittrich)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/shortcode-should-not-be-executed/#post-13603488)
 * ok, great to know!

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

The topic ‘shortcode should not be executed’ is closed to new replies.

 * ![](https://ps.w.org/enlighter/assets/icon-256x256.png?rev=1215872)
 * [Enlighter - Customizable Syntax Highlighter](https://wordpress.org/plugins/enlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/enlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/enlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/enlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/enlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/enlighter/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [Andi Dittrich](https://wordpress.org/support/users/andi-dittrich/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/shortcode-should-not-be-executed/#post-13603488)
 * Status: resolved