[WordPress] How to output a short code in a theme file

This section introduces how to output a short code in a theme file.

Code

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

If you like the article, please share it!

Related article