Using Multi sites in Wordpress 3

How To Use WordPress Shortcodes Anywhere In Your Theme

I was editing the StereoType Records website and wanted to call a WordPress shortcode for a plugin from directly in the theme  – useful if you want to add things in places they weren’t to go, like a Flickr Gallery in a pop up or a music player in your header. Whatever you need to call from a shortcode, it’s really easy to accomplish with just one line of code:

echo do_shortcode('[myshortcode]');

(source: http://wpengineer.com/2051/use-wordpress-shortcodes-outside-the-editor/

Now you can pop your favourite shortcodes anywhere you like. I used it to call the Flickr Gallery shortcode on a custom page template here:

http://stereotyperecords.co.za/gallery/

Published by

Lester

Hi, my name is Lester. I'm a music lover, an avid blogger and a bit of a geek. In addition to being a people person, I'm fascinated by the internet and over the last 4 years I've become very passionate about technology, especially email marketing, blogging, social media, and community management. Thanks for reading my blog ;)