Tag Archives: shortcodes

How to Escape Shortcodes in a WordPress post

WordPress has a feature called shortcodes, which allow you to embed dynamically generated content, often from plugins, into your posts by wrapping the shortcode in square brackets [ and ]. For example, to embed a MailPress signup form, you go:

[[mailpress]]

This works great, unless you're writing about WordPress plugins, and want to describe the shortcode rather than have it activate. In this case, you need to escape the shortcode by doubling the square brackets around it, like this:

[[[mailpress]]]

(If you're really paying attention, you'll realize that I had triple brackets around that last example while editing this article.)… Continue reading…

Posted in Content | Tagged | 3 Comments