How to use Shortcodes in Themes

 

Thankfully, WordPress has a very easy function called do_shortcode() that lets you add shortcodes in your themes. Simply add the code like this:

 

1
<?php echo do_shortcode("[example_shortcode]"); ?>

Be the first to comment

Leave a Reply