v.2.8.5 (not in the list yet)
How can I call the si contact form from a template rather than use a shortcode in the actual page content?
Your help greatly appreciated!
v.2.8.5 (not in the list yet)
How can I call the si contact form from a template rather than use a shortcode in the actual page content?
Your help greatly appreciated!
Shortcode is the recommended way, but this should work:
<?php if ( isset($si_contact_form) ) echo $si_contact_form->si_contact_form_short_code(); ?>
Works great! Thanks again, Mike. Great Plugin.... I like putting it into the template because it keeps it safely tucked away from uninformed "editors" and they can edit labels and text and such from the plugin's settings anyway...
After adding the multi-form feature there is a change calling the form with code. This is the updated code for the current version:
Change the form number as needed.
<?php if ( isset($si_contact_form) ) echo $si_contact_form->si_contact_form_short_code( array( 'form' => '1' ) ); ?>
You must log in to post.