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 knew the moment I spoke to Jo that she was the right person to transfer our website over to a content management system.  We were looking for someone who combined a really good technical knowledge of WordPress with a keen eye for design, and Jo provided just that.  She was fast, thorough and incredibly straightforward in her approach and nothing was too much trouble.  The training Jo delivered as part of the job was clear and thorough too.  Thank you, Jo, for a fantastic job!

(Tessa Lamb (Business Language Training))