Forums

[resolved] [Plugin: Fast and Secure Contact Form] how to call form from page template (4 posts)

  1. syncbox
    Member
    Posted 1 month ago #

    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!

    http://wordpress.org/extend/plugins/si-contact-form/

  2. MikeChallis
    Member
    Posted 1 month ago #

    Shortcode is the recommended way, but this should work:

    <?php if ( isset($si_contact_form) ) echo $si_contact_form->si_contact_form_short_code(); ?>

  3. syncbox
    Member
    Posted 1 month ago #

    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...

  4. MikeChallis
    Member
    Posted 2 weeks ago #

    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' ) ); ?>

Reply

You must log in to post.

About this Topic