Adding Shortcode Into PHP

Problem

So you have some shortcode, and you want to insert it into a PHP file? Just need this simple line of code:

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

Tada! That’s it!

Leave a Reply

Your email address will not be published. Required fields are marked *