Shortcodes in templates
If you are using shortcodes, you might want to add them in a template page instead of in the content of a page or post. Luckily, WordPress has a function for this;
You can add this anywhere you want your shortcode.
<?php echo do_shortcode("[my_shortcode]"); ?>
Change role access to Menus and Widgets Hide Toolbar When There’s an Error Add Odd/Even to Posts Loop within the loop Show Custom Image Sizes in Admin Media Uploader Conditional Tags extended has_term() function Check If Sidebar Has Widgets Remove images from content Extend search to include custom post meta