Wordpress - Show shortcode without executing it

To display a shortcode instead of rendering it you have two options:

  1. Write [[shortcode]]. WordPress will show this as [shortcode].
  2. Escape the [, write it as as [ or [.

Using &#91 tag will not work if you switch between the text and visual editor.

The [[shortcode]] solution does not work either with WP 4.1.1.

Instead, the following solution works:

[[shortcode]
Hello World
[/shortcode]]

Worked for me: [shortcode] where &#91 is [ and ] is ] html codes.

Don't worked for me the one suggested by toscho: Write [[shortcode]]. WordPress will show this as [shortcode].

Tags:

Shortcode