Title: Function to call to form?
Last modified: August 20, 2016

---

# Function to call to form?

 *  [mcamposs](https://wordpress.org/support/users/mcamposs/)
 * (@mcamposs)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/function-to-call-to-form/)
 * 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)

 *  [Mike Challis](https://wordpress.org/support/users/mikechallis/)
 * (@mikechallis)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/function-to-call-to-form/#post-2246878)
 * 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](https://wordpress.org/support/users/mcamposs/)
 * (@mcamposs)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/function-to-call-to-form/#post-2246886)
 * Thanks,
 * Sorry by my bad english.
 * Thanks again
 *  [BanquosGhost](https://wordpress.org/support/users/banquosghost/)
 * (@banquosghost)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/function-to-call-to-form/#post-2247171)
 * 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
 *  [Mike Challis](https://wordpress.org/support/users/mikechallis/)
 * (@mikechallis)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/function-to-call-to-form/#post-2247172)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/si-contact-form_dde2be.svg)
 * [Fast Secure Contact Form](https://wordpress.org/plugins/si-contact-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/si-contact-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/si-contact-form/)
 * [Active Topics](https://wordpress.org/support/plugin/si-contact-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/si-contact-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/si-contact-form/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Mike Challis](https://wordpress.org/support/users/mikechallis/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/function-to-call-to-form/#post-2247172)
 * Status: not resolved