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:

NB: Because this post is more than two years old, and the world of web design and technology moves on so quickly, the information in it may now be out of date


Leave a Reply

Jo Cox Design is great value for money. Jo understood the brief completely, while the handover/after-sales were very reassuring. Two things that I would like to highlight: 1) Jo gives you a useful training session in using WP and 2) the mobile version of my website is particularly exceptional. I can highly recommend Jo to any potential client, from a start-up to a fully fledged organization, looking to make an impact on the web.

Stephen Gregson (Language & Culture)