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.

Publish form entries

  1. Hi, I have a question relating to publishing form entries on the WP blog. I'm new, so bear with me if I didn't get it immediately.

    Apparently, there is no way to get form entries to be displayed as entries if they don't have at least a post title and a body content field. Is that true? Is it possible to only use a title? Is it possible to save the entry as a custom post type (ie form submission)? If there is a minimum requirement of one/two post fields on an entry-form, does that mean that all other form fields are put into the created post as cutom fields automatically *if* those two fields are present? Or is it necessary to actually define them as custom post fields in advance?

    Thanks for reply!
    TS

    Posted 14 years ago on Monday May 23, 2011 | Permalink
  2. There is a difference between Entries and Posts. Entries are Gravity Forms specific and aren't related to Posts. Entries and Posts are 2 separate things and aren't interchangeable.

    If you want a Gravity Form to create a Post you need to use Post Fields. To create a Post you would typically need to use a Post Title AND a Post Body field on your form. If you only use the Post Title field, the post will be created but it won't have any content... it will just be a Title, so there isn't much point in that.

    ONLY Post Fields create Post Data. So no, not all the fields create Custom Fields for your post. The only fields that create Post data are the Post Fields. So if you mix Standard/Advaned/Pricing Fields with Post Fields... only the Post Fields create Post data, everything else goes in the Entry. So you have to use Post Fields. If you want to create Custom Fields for the Post then you use the Custom Field that is in the Post Fields toolbox in the form editor.

    Gravity Forms only creates Posts out of the box, but it is possible to create custom post types either via custom PHP and using available hooks/filters or through the use of 3rd party add-ons such as the Gravity Forms Custom Post Type add-on found here:

    http://wordpress.org/extend/plugins/gravity-forms-custom-post-types/

    Posted 14 years ago on Monday May 23, 2011 | Permalink