WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Show shortcode without executing it

I've created a plugin that uses a custom shortcode to allow the user to easily split their post into columns.

The problem is, when writing about how to use the shortcode in the plugin documentation on my website, WordPress interprets the shortcode and starts applying to to my content. I don't want this, rather I want the shortcode to display exactly as written. How can I do this?

share|improve this question

marked as duplicate by toscho Dec 23 '12 at 10:00

This question was marked as an exact duplicate of an existing question.

up vote 0 down vote accepted

The secret is called escaping. You need to place an extra set of square brackets around your shortcode [[gallery]] and it will display as [gallery].

Also, double escaping works too: [[[gallery]]] outputs [[gallery]].

There is also a Trac ticket on this topic.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.