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:
1 |
<?php echo do_shortcode('[contact-form-7 id="1" title="Contact form"]'); ?> |
Leave a Reply