How to: Add Shortcodes into WordPress templates |
If you want to add shortcodes in a template page instead of in the content of a page or post. It's very easy. We can run any shortcodes using do_shortcode() function. Copy and paste the following script anywhere in the template/theme file, where you want display/run your shortcode content. Replace "" with your shortcode.
Linesh Jose