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 Site Host

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.

Share it!

See also  Check if File Exists Using PHP