Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

i want to show the syntaxis in some posts about how to run a shortcode, I mean, something like this [myshortcode] but without running it, is that possible?

share|improve this question

3 Answers 3

up vote 19 down vote accepted

If you use double brackets, WordPress will not execute the shortcode but just display it with single brackets. So [[gallery]] becomes [gallery] in your post.

share|improve this answer
Didn't know that! Excellent tip – MZAweb May 11 '11 at 20:13
+1 Great tip! Now works like a charm. – greenbandit May 11 '11 at 20:25
+1 I didn't know that either – Ashfame May 11 '11 at 20:29
You learn something new every day +1 – Bainternet May 11 '11 at 20:31
If you really like this answer, don't forget to upvote the question too! – Jan Fabry May 12 '11 at 9:46

I had to use triple brackets [[[gallery]]] but I do not kwow why

share|improve this answer
Can you explain this? Looks more like a comment than an answer. – s_ha_dum Jan 15 '13 at 14:54

Try replacing the first [ with [ in the Source editor tab instead of the Visual tab

share|improve this answer
Thanks but does't works, any new idea? – greenbandit May 11 '11 at 20:06
Sorry, I'm a moron. The html entity for that char is [ Put that in the Source tab. – MZAweb May 11 '11 at 20:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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