Home  »  CodeSnippets   »   How to Use a WordPress Shortcode Within a Template

How to Use a WordPress Shortcode Within a Template

Posted: February 8, 2022 | by Michael Bright

Add this to the template:

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

Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.