Use a wordpress shortcode inside a template

Shortcodes in WordPress are bits of text you can use in the content area to invoke some kind of function to accomplish certain tasks.

To use a wordpress shortcode inside a template, for example to build contact-form-7 in a template.
Use the following code:

 

Leave a Reply

Your email address will not be published. Required fields are marked *

-->