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.

adding post form to template

  1. I have a category template and I created a form using the post fields. Would like to add this form below the loop so that on this category page, users can post. I do not know how to call the form. Thanks in advance, Rick

    Posted 15 years ago on Friday November 20, 2009 | Permalink
  2. I added this to my template <?php echo do_shortcode('[gravityform id=7 name=GotA Question?]'); ?>
    And it worked. Hope this method is acceptable. How do I re-direct the page to the post that was created, or the same page reloaded, showing the post on the category page? It does work, but I have to access the category again.

    Posted 15 years ago on Friday November 20, 2009 | Permalink
  3. Rick,
    I am not sure I understand where you want to redirect to. Can you explain a little more? A link to your form would also be helpful so that we can see it in action.

    Posted 15 years ago on Saturday November 21, 2009 | Permalink
  4. its for a client, and password protected area. I ended up re-directing to the same page its on, which seemed to work perfectly. When a subscriber submits the form, their post is at the top of the page, a category page called forum, for posting questions. Because the page is re-directed, when the page reloads, the question is there. It all works fine, but I wondering if I could be doing something wrong here? If need be I can create a temporary username and password for you to take a peak. thanks.

    Posted 15 years ago on Saturday November 21, 2009 | Permalink
  5. Send me the user and password to alex[at]rocketgenius.com and I will be happy to take a look at it

    Posted 15 years ago on Saturday November 21, 2009 | Permalink
  6. just sent it to you, "subject" username and password, and sorry, sent a 2nd email to you with the url...

    Posted 15 years ago on Saturday November 21, 2009 | Permalink
  7. Thanks for the support here, Gravity Forms is fantastic,

    Posted 15 years ago on Sunday November 22, 2009 | Permalink
  8. craig.c
    Member

    What about when there is no post or page published (via wordpress - ie: a static homepage), how can you embedd a form in the template?

    Posted 15 years ago on Sunday November 22, 2009 | Permalink
  9. You can add the following function call to your template to embed a form

    <?php gravity_form(2, false, false); ?>

    Parameter 1: (id): (Required) The id of the form to be embedded
    Parameter 2: (title): (Optional) Whether or not do display the form title. Defaults to 'false'
    Parameter 3: (description): (Optional) Whether or not do display the form description. Defaults to 'false'

    Posted 15 years ago on Sunday November 22, 2009 | Permalink
  10. craig.c
    Member

    That's what I figured, and read in your Documentation. It's not working however, so is most likely an issue with my theme.

    Posted 15 years ago on Sunday November 22, 2009 | Permalink