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.

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

1 Answer 1

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.