🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Pods Integration Premium Add-on Setup Guide

Updated 9 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What You Get
  3. Requirements
  4. Quick Start
  5. Which Item: Create or Update
  6. Who may update an existing item
  7. Mapping Fields
  8. Relationship fields
  9. Files and images
  10. Status and Author of New Posts
  11. Choices From a Pod
  12. Notes, Conditions and Delayed Payment
  13. When Pods Is Not Active
  14. Developer Hooks
  15. Frequently Asked Questions
  16. Do I need to write code?
  17. Which pods can I use?
  18. Does it create user accounts?
  19. Does it send data to another service?
  20. What happens when I rename a field in the pod?
  21. Forms that write straight into your pods

Video walkthrough

Gravity Forms Pods: Create Custom Post Type Items from a Form (Free Pods Plugin)
A Gravity form creates items in the free Pods plugin Watch on YouTube

Pods Integration connects Gravity Forms to the free Pods plugin. A feed takes a submitted entry and creates or updates an item of a pod: a custom post type, a taxonomy, a user or an advanced content type. The fields of the pod are listed for you, so you map form fields to them with a few clicks. Relationship fields and file fields work too. The other half of the add-on goes the other way: a select, radio or checkbox field can fill its choices from a pod every time the form is shown.

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.

What You Get

  • A feed called Pods under Form Settings. Pick any post type, taxonomy, user or advanced content type pod from the list.
  • The fields of the pod are read from Pods itself, so the mapping always matches your current pod, including required fields.
  • Relationship fields by item ID or by title, name, slug, user login or e-mail address. Several items from a checkbox or multi select field.
  • File and image fields filled from a File Upload field. The files are copied to the media library once.
  • Dates, times, numbers, yes/no values, e-mail addresses and links are converted to what the Pods field expects.
  • Create a new item every time, or update the item that has the same value in a field (an e-mail address, a code), or update the item whose ID comes from a hidden field.
  • Status and author for new posts. A person can only update an item they are allowed to edit, unless you decide otherwise.
  • Choices from a pod for select, multi select, radio and checkbox fields, with a label, a value, a filter, an order and a limit.
  • An entry note for every run, a box with a link to the item on the entry page, conditional logic on the feed and delayed payment.
  • A clear notice when the Pods plugin is missing. Forms keep working.

Requirements

Gravity Forms 2.9 or newer, WordPress 6.5 or newer, PHP 7.4 or newer, and the Pods plugin from WordPress.org. The add-on talks to Pods through its public PHP functions only, so Pods keeps validating, hooking and storing the way it always does.

Quick Start

  1. Install and activate Pods and the add-on, then activate your license key in Forms → Settings → Pods.
  2. Open a form and go to Settings → Pods. Click Add New.
  3. Give the feed a name and choose a pod. The page reloads and shows the settings of that pod.
  4. Under Fields, add one row for each pod field you want to fill and choose the form field that holds its value.
  5. Choose what happens to the status of a new post and who is the author, then save the feed.
  6. Send the form. Open the entry: a note says which item was created, and a box links to it.

Which Item: Create or Update

The Create or update setting decides which item the feed works on.

Setting What happens
Create a new item every time Each entry makes a new item.
Update the item that has the same value in a field Choose a pod field and the form field whose value must match it exactly. The item that matches is updated. When nothing matches you choose to create a new item or to stop with an error note.
Update the item whose ID comes from a form field Usually a hidden field filled from the page with a merge tag or a value in the web address. A wrong ID, or the ID of something that is not an item of this pod, stops with an error note.
Update the logged-in user (user pods only) The fields are saved on the person who submitted the form. Visitors who are not logged in change nobody.

The add-on never creates user accounts and never changes a role or a password. Use it to fill extra fields of users that already exist.

Who may update an existing item

By default a person can update an item only when WordPress would let them edit it in the admin: edit_post for a post type, edit_term for a taxonomy, the profile of a user, and the Pods permission for an advanced content type. A visitor who types a known e-mail address or ID cannot change somebody else’s item. If the form is meant for the public, for example a writers’ sign-up where the e-mail address is the key, choose Anyone who submits the form and decide carefully which fields the feed maps.

Mapping Fields

Each row of the map pairs a pod field with a form field. A row can also use a Custom Value, which accepts merge tags, so you can build a title from two fields or add a fixed value. The pod field list shows the label, the name and the type, and a star marks the fields that the pod requires.

Pod field type What the form field can give
Text, paragraph, code Any value. Lists such as a checkbox field are joined with commas.
E-mail, website An address or a link. A value that is not valid is left out.
Rich text Text or HTML. Scripts are removed.
Number, currency A number. Thousand separators and currency signs are removed. A value that is not a number is skipped with a note.
Date, time, date and time A Date field or a Time field, or text that is a date. Twelve hour times with am or pm are converted.
Yes / no A single checkbox, or a value such as yes, true or 1.
Relationship Item IDs, or titles. See below.
File, image A File Upload field, or the ID of a file that is already in the media library.

Relationship fields

A relationship field points to other items: another pod, a post type, a taxonomy, users, media or a short custom list. The setting Relationship fields says how a value finds the related item. The default treats a number as an ID and anything else as a title. You can also force IDs or titles.

  • For a post type, a pod item or a media file the title is tried first and then the slug.
  • For a taxonomy, the term name and then the slug. An option creates terms that do not exist yet.
  • For users, the login name, the e-mail address or the display name.
  • A checkbox or multi select field gives several items. In a text field separate several titles with a new line or a semicolon.
  • Titles that cannot be found are listed in the entry note and the rest are saved.

Files and images

A file field takes the files of a File Upload field. Each file is copied to the media library and the attachment is saved in the pod field. A field that takes one file gets the first file, a field that takes several gets all of them. Running the feed again for the same entry does not copy the files a second time.

Status and Author of New Posts

For a post type pod you choose the status of a new item (draft, pending review, published or private) and its author: the person who submitted the form, or one fixed user. A visitor leaves no author. The status of an item that is only updated is not changed.

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.

Choices From a Pod

Select, multi select, radio and checkbox fields have a new setting in the form editor: Fill the choices from a pod. Switch it on and choose the pod, the field that gives the label people see and the field that gives the value that is saved. The value is the item ID by default.

Setting What it does
Pod Any post type, taxonomy, user or advanced content type pod.
Label and value Any field of the pod, or the item ID, or the item name.
Filter One condition: a pod field, an operator (equals, is not, greater, less, like, not like) and a value.
Order A pod field and ascending or descending.
Maximum items From 1 to 1000. The default is 200.
Posts Published only, or published, draft, pending and private. Only for post type pods.

The list is read each time the form is shown, so a new item in the pod is a new choice. The same list is used when the form is validated, so a value that was never offered is refused. This works with AJAX forms and multi-page forms. A field whose pod has no items shows only its placeholder.

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.

Fill a writer drop-down from a pod, save its value as the item ID, and map that field to a relationship field in a feed with the setting that values are IDs. The visitor picks a name, the book is linked to the right writer.

Notes, Conditions and Delayed Payment

  • Every run adds a note to the entry: the item that was created or updated, any value that was skipped, or the reason nothing was saved.
  • The entry page has a Pods box with a link to edit the item.
  • Feeds can have conditional logic. The feed runs only when the entry matches.
  • With a payment add-on, the feed can wait until the payment is completed.

When Pods Is Not Active

If the Pods plugin is deactivated, a notice appears in the admin and on the feed pages. Forms are not broken: choices that were filled from a pod show the choices saved with the field, and a submitted entry gets a note that Pods was not active, so nothing is lost silently.

Developer Hooks

Three hooks let you change what the add-on does. The first changes the values that are saved.

// Add a field value to every item the add-on saves in the books pod.
add_filter( 'gfxpods_item_data', function ( $data, $feed, $entry, $form, $pod, $item_id ) {
    if ( 'book' === $pod['name'] && 0 === $item_id ) {
        $data['source'] = 'website form ' . $form['id'];
    }
    return $data;
}, 10, 6 );

The second runs after an item is saved.

// After the item is saved: clear a cache of your own.
add_action( 'gfxpods_item_saved', function ( $item_id, $pod_name, $was_update, $feed, $entry, $form ) {
    delete_transient( 'my_library_shelf_' . $pod_name );
}, 10, 6 );

The third changes the choices that are read from a pod.

// Add a choice at the top of every list that is filled from a pod.
add_filter( 'gfxpods_choices', function ( $choices, $settings, $field, $form ) {
    array_unshift( $choices, array( 'Any writer', 'any' ) );
    return $choices;
}, 10, 4 );

Frequently Asked Questions

Do I need to write code?

No. Feeds and choices are set in the form settings and in the form editor. The hooks are optional.

Which pods can I use?

Post type pods, taxonomy pods, user pods and advanced content type pods, including pods that extend a built-in post type or taxonomy. Pods of other kinds, such as settings pods, are not offered.

Does it create user accounts?

No. User pods are updated for people who already have an account. Registering users is a different job.

Does it send data to another service?

No. The add-on talks to the Pods plugin on your own site and to nothing else.

What happens when I rename a field in the pod?

The feed keeps the old name. Open the feed, pick the new field and save. A name that no longer exists is skipped.

With the fields of your pods listed for you, relationships and files handled, and choices that come from your own content, a form becomes a clean way to add and update 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.

Still need help?

Our support team answers tickets every day, usually within a few hours.

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