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

Gravity Forms Place Listings 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. Step 1: Status and Owner
  6. Step 2: Map the Fields
  7. Step 3: Images
  8. Choice Lists From GeoDirectory
  9. Let Owners Edit Their Listing
  10. Know When GeoDirectory Saves or Publishes
  11. Contact the Listing Owner
  12. Merge Tags
  13. A Few Practical Setups
  14. Questions People Ask
  15. Do I need paid GeoDirectory add-ons?
  16. Does it write to the GeoDirectory tables directly?
  17. Is it safe on a public form?
  18. Does it send my data to another service?

Video walkthrough

Gravity Forms GeoDirectory: Place Listing Submissions with Approval (Free GeoDirectory)
Watch the Place Listings add-on turn a Gravity Forms submission into a GeoDirectory place that waits for approval, then let the owner update it. Watch on YouTube

Place Listings joins Gravity Forms and the free GeoDirectory plugin. GeoDirectory turns a WordPress site into a directory of places, with maps, categories, custom fields and an add listing page. Place Listings adds what the two do not do together: a Gravity Forms form that creates or updates a listing, with everything Gravity Forms is good at, such as multi page forms, conditional logic, payments, spam protection and any field type. It also reacts when GeoDirectory saves a listing, and lets a visitor write to the owner of a listing without ever seeing the owner address.

A Gravity Forms form to add a place to a GeoDirectory directory: listing name, description, address, a category list filled by the add-on, tags, phone, email, website and a photo upload
A normal Gravity Forms form, with the category list filled from GeoDirectory by the add-on.

What You Get

  • A feed called Create or update a GeoDirectory listing. It runs when the form is sent, or when its payment is completed, and saves the listing through GeoDirectory’s own save path, so every GeoDirectory rule and hook still applies.
  • A safe owner: the logged-in user, or a new account made from the email in the form. An existing account is never taken over.
  • Mapping for the title, the description, the address, the map position, categories, tags, the featured image, a small gallery and any custom field of the listing type.
  • A pre-filled edit form for the owner of a listing, with the ownership checked again when the form is sent.
  • A feed called When GeoDirectory saves or publishes a listing, which adds an entry, sends notifications, or both.
  • A feed called Contact the listing owner, which turns a form on a listing page into a message to the owner, with a merge tag that routes the notification and never prints the address.
  • Category and post type lists filled from GeoDirectory, merge tags, conditional logic, entry notes and a clear notice when GeoDirectory is missing or too old.

Requirements

You need Gravity Forms 2.9 or newer, WordPress 6.5 or newer, PHP 7.4 or newer and the free GeoDirectory plugin, version 2.8.0 or newer. The add-on was tested with GeoDirectory 2.8.194. Nothing is sent to an outside service. Only the license check talks to gravityextra.com, when you press Activate.

Quick Start

  1. Install and activate the add-on and the free GeoDirectory plugin, then activate your license key under Forms, Settings, Place Listings.
  2. Build a form with a name, a description, an address, a category and the other answers you want. Add an email field if visitors may send it without an account.
  3. Open the settings of the form, choose Place Listings and add a feed. Keep the action Create or update a GeoDirectory listing.
  4. Choose the post type and the status, decide who owns the listing and map the fields.
  5. Send a test entry, then open the listing in GeoDirectory. The entry notes say what was created.
The Place Listings feed settings in Gravity Forms: mode, post type, status of a new listing, the featured option, who owns the listing and the account fields
One feed: what to create, with which status, and who owns it.

Step 1: Status and Owner

A new listing can be created as pending review, published, draft, or with the status GeoDirectory itself uses for new listings. Pending is the default, so you keep control over what goes live. For paid listings, connect a payment add-on and tick the option to create the listing only when the payment is completed. Nothing exists until then.

The owner is the logged-in user, or for a visitor a new account made from the email in the form. If the form is only for people who have an account, choose the logged-in user only. If a visitor types the email of an existing account, the safe default is to refuse: nothing is created and the entry gets an error note. You can choose to attach the listing to that account, but only when the account has no editing or administration rights. An address of an administrator, an editor or an author is always refused, so nobody can put a listing under an important account by typing its email.

A new account gets the WordPress default role unless you choose another one, and the list holds only safe roles. Roles that can edit content, manage users or change the site are never offered and are refused again when the feed runs.

Step 2: Map the Fields

The title is the one required field. Then map the description, the address and the rest. For the address you can use a Gravity Forms Address field, and the add-on splits it into street, second line, city, region, postal code and country. You can also map single fields, which win over the Address field. The country is written as a name, as GeoDirectory keeps it, even when Gravity Forms stores a country code.

The map position comes from a latitude and a longitude field. They can be hidden fields filled by a map field or a geocoding step of your own. A value that is not a number in range is skipped with a note, and the listing is still created.

Custom fields are mapped with a table: choose the GeoDirectory field on the left and the form field on the right. Phone, email, website, price, opening notes and every other text, number, choice, date or time field of the listing type can be filled. A choice must be one of the options of the field, a number field takes numbers only, a link must start with http or https and an email must be an email. A value that does not fit is skipped with a clear note on the entry. Admin only fields are never offered.

Categories can be picked in a drop down, radio buttons, check boxes or a text field. The answer may be the category id, its slug or its name, and only categories that exist for the post type are used. If the form gives none, you can set a default category. Tags are a comma separated list.

Step 3: Images

Map an upload field to the featured image and another to the gallery. The featured image comes first, then the gallery, and you choose how many images at most, from one to ten. Only image files that Gravity Forms stored on your site are used: jpg, png, gif and webp. A file that is not a real picture, a file of another type and a file outside the Gravity Forms uploads are skipped with a note. The images are saved by GeoDirectory, so its thumbnails, order and featured flag work as usual.

Choice Lists From GeoDirectory

A category field can be filled by the add-on with the categories of the post type, children indented, and the value is the category id. A post type field can be filled with your GeoDirectory post types. When a form lets the visitor pick the post type, only a GeoDirectory post type is used. Any other answer falls back to the post type chosen in the feed. New categories show up as soon as you create them.

Let Owners Edit Their Listing

Choose the mode Update an existing listing of the logged-in owner. The form is opened with a link that carries the listing number, for example the address of the edit page followed by a question mark and gfgeo_listing equal to the number. A shortcode called gfgeo_edit_link prints that link for the owner on the listing page.

The form opens pre-filled with the title, description, address, category, tags and the custom fields you mapped. Only the owner sees it. Visitors are asked to log in, other users and even administrators see a message instead, unless you tick the option that lets site managers edit any listing. The address of the form carries a signed reference, and the owner is checked again when the form is sent, so a forged request changes nothing.

A mapped field that is cleared in the form is cleared in the listing. A category field left empty keeps the categories. New images are added to the ones the listing has, or replace them, as you choose.

Know When GeoDirectory Saves or Publishes

The event feed listens to GeoDirectory. It fires when a listing is saved, either created or edited, and when a listing becomes published. For each event the feed can add an entry to a form, send the notifications of that form, or both. The entry can hold the listing title, link, id, status, post type, email, city, region, country, categories, the owner and what happened. You can limit the feed to some post types and to new listings only.

It is a quick way to build a moderation queue, an alert for your editors, or a message to the owner when the listing goes live. Listings created by a feed of this add-on do not feed back into event feeds, because that entry already exists. Drafts that GeoDirectory makes when its own add listing page opens are never an event.

The GeoDirectory event feed settings: listing saved, listing published, new listings only, post types, add an entry, send notifications and the entry field map
The event feed turns GeoDirectory activity into entries and notifications.

Contact the Listing Owner

Put a form on the page of a listing, for example in a GeoDirectory tab, and give it a feed with the action Contact the listing owner. In a notification of that form, type the merge tag {gfgeo_owner_email} in Send To. The message goes to the email of the listing. If the listing has none, the feed can use the email of the account that owns it.

The visitor never sees the address. It is not in the page, the entry, the confirmation or any message. The form carries a signed reference to the listing, so a visitor cannot send a message to another listing, and only published listings can be written to. Outside a listing page the form is hidden, or replaced by a message.

Merge Tags

  • {gfgeo_listing_id}, {gfgeo_listing_title} and {gfgeo_listing_url} for the listing of the entry.
  • {gfgeo_listing_status}, {gfgeo_listing_type} and {gfgeo_listing_city}.
  • {gfgeo_owner_login} the username of the owner.
  • {gfgeo_owner_email} only as a notification recipient, never as text.

The tags appear in the merge tag list of the form editor. Notifications get two new events, GeoDirectory: listing saved and GeoDirectory: listing published, on forms that have an event feed.

A Few Practical Setups

  • A public submission form that creates pending listings for your editors to approve.
  • A paid listing: a payment add-on and the feed set to run when the payment is completed, with the featured option for paid entries.
  • A members only form for logged-in owners, with an edit form on their dashboard.
  • A moderation alert: an event feed that notifies your editors for every new listing.
  • A contact form in the tabs of every listing.

Questions People Ask

Do I need paid GeoDirectory add-ons?

No. The add-on works with the free GeoDirectory plugin and its listing types.

Does it write to the GeoDirectory tables directly?

No. It calls the same WordPress save functions GeoDirectory uses for its own form, so GeoDirectory writes its tables, terms and images itself.

Is it safe on a public form?

The add-on never takes over an existing account, never hands out a role that can manage the site or content, only uses images Gravity Forms stored, only fills fields that exist for the post type and checks the owner again when an edit form is sent.

Does it send my data to another service?

No. Everything happens on your own site.

Place Listings is part of the GravityExtra collection of Gravity Forms add-ons. See the Gravity Forms Place Listings Premium Add-on for the details.

See the Place Listings add-on

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