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

This question already has an answer here:

I would like to print the following code in wordpress.

[embed]http://www.youtube.com/watch?v=9bZkp7q19f0[/embed]

But every time I use that code in the wordpress editor, it automatically embeds the video. Is there a way to print it.

I've tried pre and the answer mentioned here

http://wordpress.stackexchange.com/a/64616/5074

But its still not working.

share|improve this question

marked as duplicate by Rarst Jun 11 '13 at 20:40

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

    
Doubling brackets doesn't work (probably because embeds are not processed like normal shortcodes), but encoding bracket tested and works fine. – Rarst Jun 11 '13 at 20:39
up vote 0 down vote accepted

There is a special trick to do that with simple shortcode like [gallery]:

[[gallery]]

But I do not know if it works with enclosed shorcodes

EDIT: I guess you have to use solution 2 provided by toscho

write it as as [ or [;

If you have to write it from time to time you could use the Quicktags API

share|improve this answer

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