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

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
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

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

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

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.