🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 21, 2026

How to Save Gravity Forms Entries to Pods Custom Post Types, Relationships and Files

GravityExtra
How to Save Gravity Forms Entries to Pods Custom Post Types, Relationships and Files

Pods is a favourite way to turn WordPress into a small content system: a Books post type, a Writers table, a Genres taxonomy, each with its own fields. Gravity Forms is a favourite way to collect information. The missing piece is the bridge between them. This tutorial builds that bridge. By the end a form creates a book with its writer, its genres and its cover, a second form updates a writer, and a third form offers the writers in a drop-down that is read from Pods itself.

Everything here uses Pods Integration, a Gravity Forms add-on that talks to Pods through its own PHP functions. That matters: the item is saved the way Pods saves it, so validation, hooks and relationship storage all run.

What You Need

  • WordPress with Gravity Forms 2.9 or newer.
  • The free Pods plugin from WordPress.org.
  • The Pods Integration add-on, activated with your license key under Forms → Settings → Pods.

The Content Model We Will Use

Create three pods in Pods Admin.

  • Books, a custom post type, with the fields isbn (text), pages (number), published_on (date), in_print (yes/no), writer (a relationship to one writer), co_writers (a relationship to many writers), genres (a relationship to many genre terms) and cover (an image).
  • Writers, an advanced content type, with email, country, karma (number) and photo (an image).
  • Genres, a custom taxonomy, with a short blurb field.

Nothing in the add-on depends on these names. Use your own pods and the steps are the same.

Step 1: Build the Form

Create a form called Add a book with a text field for the title, text fields for the ISBN and the writer, a number field for the pages, a date field, a single checkbox called In print, a checkbox list of co-writers, a multi select of genres, a File Upload field for the cover and a paragraph for the description.

Step 2: Add a Pods Feed

Open Settings → Pods in the form and click Add New. Name the feed, then choose the Books pod. The page reloads and lists the fields of that pod. Choose the status of a new book (Draft is a safe start) and who the author is.

The Pods feed settings in Gravity Forms: the Pod drop-down set to Books, the way an item is created or updated, and a table that maps each form field to a field of the pod
One feed: pick the pod, choose how the item is found, and map form fields to the fields of that pod.

Step 3: Map the Fields

Add one row for every pod field you want to fill. Choose the pod field on the left and the form field on the right. The title of the book is a core field of the pod, so it is in the list as Title, together with the content and the slug. Fields the pod requires are marked with a star.

You do not have to convert anything by hand. The number field gives a number, even when a visitor types a thousand separator. The date field becomes a Pods date. The single checkbox becomes the yes/no value. A value that cannot be read is skipped, and the entry note tells you which one.

Step 4: Relationships

The writer field is a plain text field. A visitor types Ada Lovelace and the add-on looks for a writer with that name. The co-writers are a checkbox list, so the feed gets several names and links all of them. The genres come from a multi select; the add-on matches them to the terms of the Genres taxonomy by name. If a visitor picks a genre that does not exist, the other genres are saved and the entry note lists the one that was not found. An option in the feed creates missing terms instead.

If your form already holds item IDs, for example because the choices come from the pod, change the setting Relationship fields to say that values are IDs. We use exactly that in step 8.

Step 5: The Cover Image

Map the File Upload field to the cover field of the pod. The uploaded file is copied to the media library and the attachment is saved in the Pods field. Send the same entry through the feed again and the file is not copied twice. A field that takes several files, such as a gallery, receives all the uploads.

Step 6: Send the Form and Read the Entry

Open the form on your site and send it. In the Gravity Forms entry you find a note that says which Pods item was created and in which pod, and a Pods box that links to the item in the admin. Because the feed is a normal Gravity Forms feed, you can give it conditional logic, so that only entries with a certain answer create an item.

A Gravity Forms entry in the admin: a note that says a Pods item was created in the Books pod and that one genre was not found, and a Pods box with a link to edit the item
Every run leaves a note on the entry and a link to the item.

Step 7: Update Instead of Create

A second form, Writer sign-up, keeps the writers table current. In the feed choose Update the item that has the same value in a field, pick the email field of the pod and the e-mail field of the form. A new e-mail address creates a writer, a known one updates that writer. A field the visitor leaves empty keeps the value it had.

There is a safety switch here. By default only a logged-in person who may edit the item can update it. That protects your content: a stranger who types a known address cannot change somebody else’s item. For a public sign-up form, choose Anyone who submits the form, and map only fields that are fine to change.

You can also update by ID. Add a hidden field, give it a parameter name, and link to the form with the ID in the address, for example from a button on each book page. The feed updates exactly that book, provided the person is allowed to edit it. A wrong ID, or the ID of something that is not a book, ends with an error note and changes nothing.

Step 8: Choices From a Pod

The other half of the integration is the drop-down. In the form editor, add a select, radio or checkbox field, switch on Fill the choices from a pod and choose the Writers pod. The label is the name and the value is the item ID.

You can filter the list, for example to writers from one country, order it, and limit it to a number of items. For a post type pod you decide whether drafts are included. The list is read each time the form is shown and again when the form is checked, so a visitor can only send a value that was offered.

A Choose from the library form whose drop-down, radio buttons and checkboxes list writers and books read from Pods, in the order and with the filter set in the form editor
Drop-downs, radio buttons and checkboxes filled from a pod every time the form is shown.

Now go back to the book form. Replace the writer text field with a drop-down filled from the Writers pod, and the co-writers with a checkbox list filled the same way. Set the feed to treat values as IDs. A visitor picks names, the book is linked to the right writers, and no one can mistype a name.

Taxonomies and Users

The same feed works for a taxonomy pod: map the name, the description and your own fields, and update a term by name. For a user pod, the feed updates the extra fields of the person who submitted the form. It never creates an account and never touches a role or a password, so it is safe to put on a profile page.

When Something Goes Wrong

  • Nothing happened. Open the entry. Every run leaves a note, and an error note says why: a missing license, a pod that was deleted, an item that was not found, or a person who may not edit it.
  • A related item is missing. The note lists the titles that were not found. Check the spelling, or switch the setting to IDs.
  • A date is empty. The note says the value was not a date. Use a Date field, or text that is a date.
  • Pods was deactivated. A notice appears and each entry gets a note. Reactivate Pods and resend the feed.

Tips

  • Start with Draft as the status, check the first items, then switch to Published.
  • Use IDs when the form chooses from the pod, and titles when visitors type.
  • Keep update forms for logged-in people. Use public updates only for data that is harmless.
  • Use the hook gfxpods_item_data to add a value of your own to everything the add-on saves.

Frequently Asked Questions

Does it work with pods that extend a built-in post type?

Yes. Pods that extend a post type, a taxonomy or the user are listed together with the pods you created.

Does it need code?

No. The feed and the choices are set up in the Gravity Forms screens.

Does it send my data anywhere?

No. It works with the Pods plugin on your own site only.

A form that saves straight into your pods saves you the copying, and a form that reads its choices from your pods keeps its answers clean. Together they make Gravity Forms a front end for the content you manage with Pods.

Forms that write straight into your pods

Create or update Pods items from Gravity Forms and fill choices from your own content.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr