Tagged: Shortcode


WordPress: Shortcodes in Theme Files

The following code will enable you to use any shortcode within your theme and not just a page or post.

Just replace the [shortcode option1=”value1″ option2=”value2″] with your desired shortcode.


WordPress: Shortcodes in Text Widgets

Have you ever had a need to apply a shortcode inside a widget? Just add the following into your functions.php file within the theme, be sure to place this code inside your PHP code <?php  and ?>: