• A function php, html etc, to call the form [si-contact-form form=’1′], to insert code directly in my template?

Viewing 4 replies - 1 through 4 (of 4 total)
  • How can I add the contact form to a template manually rather than use shortcode in a page?

    Use this code:

    <?php
    if ( isset($si_contact_form) )  {
     echo $si_contact_form->si_contact_form_short_code( array( 'form' => '1' ) );
    }
    ?>

    Be sure to set the correct form number. For example: for form 2 you have to set: ‘form’ =>’2′

    Thread Starter mcamposs

    (@mcamposs)

    Thanks,

    Sorry by my bad english.

    Thanks again

    I have a related problem here- the templates I have here insert particular content at a certain location on the page, called as ‘$content’. How would I adjust the above so that the output of the echo call above is held in ‘$content’ rather than just plain echoed?

    Thanks

    BanquosGhost, I do not know. Ask the support department for your theme.

    Mike

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Function to call to form?’ is closed to new replies.