Adding Shortcodes to a WordPress Template">no comments
Shortcodes are especially useful for elements that you want to include on a specific page or post, but there may be times where you want to include them in the header or footer of your site, or even on a specific page or post template.
In order to do this you simply inlcude the following bit of code where you want the shortcode to appear:
<?php echo do_shortcode('[shortcode]'); ?>
You might find it useful to wrap the shortcode in a div for styling purposes, like this:
<div id="shortcode"><?php echo do_shortcode('[shortcode]'); ?></div>
Now you can just reference the div in your css file.