PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

How can i add a Form on a php page ?

  1. ludo2604
    Member

    Hi,
    I would like to know the code to put on a page.php of wordpress (archives.php for exemple), for the form id # 2 ?

    Thanks in advance!

    Posted 13 years ago on Tuesday April 26, 2011 | Permalink
  2. If you want to display a form in a PHP template file in your theme you would use the function call. Documentation for the function call can be found here:

    http://www.gravityhelp.com/documentation/page/Embedding_A_Form

    When using the function call you also have to manually enqueue the necessary CSS and Javascript using the enqueue function call. The enqueue function call documentation can be found here:

    http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts

    Posted 13 years ago on Tuesday April 26, 2011 | Permalink