Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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 has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

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.