Add WordPress Shortcode Directly in a Template File
Place this in your theme template file where the shortcode should execute.
1 2 3 | <?php echo do_shortcode('[your-shortcode]'); ?> |
Be sure to replace any single quotes (‘) with double quotes (“) within your shortcode to prevent PHP errors.