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:

Leave a Reply

What our customers say:

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)