How to Display WordPress Shortcodes in Themes Templates

How To Display WordPress Shortcodes In Themes Templates
How To Display WordPress Shortcodes In Themes Templates

This code will allow you to insert WordPress shortcodes into your theme-/templates – using WordPress built-in function do_shortcode()

Instructions
Add this code to your theme template where you want the shortcode content to be display.

<?php echo do_shortcode("[the_shortcode]"); ?>
Spread the love

You Might Also Like

Leave a Reply

Your email address will not be published.