Add WP Shortcode to Templates


/ Published in: PHP
Save to your folder(s)

Inserts WordPress shortcode outside the loop in a template


Copy this code and paste it in your HTML
  1. <?php echo do_shortcode('[shortcode option1="value1" option2="value2"]'); ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.