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:

Jo took my simple brief outline of what I wanted and turned it into everything I wanted and more. Jo was very professional, efficient and she was patient and understanding with the fact that I was not knowledgeable about building websites or what’s involved. By the end of it Jo had given me and my team a training session around how to manage the website. I would highly recommend her!

Sharon Mulholland (Sandcastle Mortgages)