Recently while working on a WordPress membership site, we found a need to rely on user-submitted content by our members. Gravity Forms has become our choice for all user-submitted content however Custom Post Types support is not yet added into the core. Luckily, there is a third-party (free add-on) that lets us extend the power of Gravity Forms to Custom Post Types. In this article, we will show you how to add user-submitted content in Custom Post Types with Gravity Forms.
Note: this article assumes that you already know and have created Custom Post Type(s) to use.
Now create a New Form and add the Title field from post fields. You can name it whatever you like. Click on the Advanced tab where you will see a new checkbox added called Save As Post Type. Check that box and select the post type from the drop down.
Most likely, you will want to sort these submissions into some sort of structure by using Custom Taxonomies. That is fairly easy as well. Create either a drop-down field, checkbox field, or a radio-button field. Simply add all of your taxonomies there. Then click on the advanced tab where you will see a new checkboxed added called Populate with a Taxonomy. Select the taxonomy you want to associate with.
If your custom taxonomy is the same structure as tags where you want users to specify each item, then you can use the single text. You can add an enhanced UI feature, so the user can add all tags.
You can easily do this by adding a single line text field. Going to the advanced tab, click save to taxonomy. Then also enable the enhanced UI.
You can map any custom fields, body text, images etc with Gravity forms using the post field.
An example of the final form could look look like this:
We hope that this has given you a general idea of how to use Gravity Forms with Custom Post Types. Very soon, we will share a practical example of how we used this feature to create a local group listing.