Warning: Invalid argument supplied for foreach() in /home3/digestwp/public_html/wp-content/plugins/wp-twitter-timeline/wp-twitter-timeline.php on line 236

How to place shortcode in template pages.

Most plugins and themes these days are using shortcodes which are great and save time. Sometimes you want to place this shortcode somewhere else in the theme though and not just in the admin content. Your shortcode should look something like this [shortcode]  or [shortcode] text [/shortcode]

To place this somewhere in your template you want to wrap it with the following PHP echo.

<?php echo do_shortcode('[shortcode]'); ?>

Leave a Reply