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.

Using forms to create posts

  1. I'm using gravity forms to create a press release site. I'm probably missing something in the docs. If someone could point me in the right direction that would be great.

    Currently, I have users submitting a headline, summary, body and keywords and that all works great.

    What I'm trying to do is use additional fields and also have those write to the post.

    Ideally, I could automatically populate: "For more information, please visit:" and then the url entered into a form field would show up at the appropriate place in the body. Likewise contact information and a link to their buddypress profile.

    Thanks for all your help!
    Tony

    Posted 13 years ago on Thursday June 23, 2011 | Permalink
  2. You have 2 options in this situation. Only Post Fields create Post data and WordPress Posts have a limited number of fields to utilize (Title, Body, Custom Fields, etc.).

    You can either use Custom Fields and store the values as individual custom fields with the Post. This will require you to make changes to your theme template to then display these Custom Fields, which are not displayed automatically.

    You can read more about Custom Fields here:

    http://codex.wordpress.org/Custom_Fields

    The alternative solution is to use the Content Template feature of the Post Body field. The Content Template lets you control and format what is saved as the Post Body and insert the value of other form fields using merge tags. It lets you configure the Post Body content similar to how you configure the email notifications and thank you message. It supports HTML and has an "Insert form field" drop down for inserting field merge tags that get replaced with the value for that field.

    Just keep in mind while Gravity Forms has a wide range of field types and data capture capabilities, Posts do not. So you are limited as ar as what you can do with Post creation because WordPress Posts consist of just a handful of fields to store data in.

    Posted 13 years ago on Thursday June 23, 2011 | Permalink

This topic has been resolved and has been closed to new replies.