How to: Embed Shortcodes in a WordPress Theme

11th January 2013

If you’ve been using WordPress for a while, you will have come across shortcodes. They’re used to run certain functions, with a number built into WordPress and numerous others installed with plugins. They look something like this:

[shortcode] or [shortcode] [/shortcode]

Usually you just copy or type them straight into the content area of your posts or pages, but sometimes you might want to use them in parts of your theme too. For that, you’ll need this script:

I was delighted with Jo’s work: she combines an excellent eye for spacious design with patience and inventiveness.

(Kieron Winn)