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

How to Let Visitors Add Stores to WP Store Locator with Gravity Forms

GravityExtra
How to Let Visitors Add Stores to WP Store Locator with Gravity Forms

A store locator is only as good as its list of stores. When the list is short or out of date, visitors search, find nothing and leave. When you run a franchise, a dealer network, a chain of partner shops or a directory, the people who know the new address are the owners of the new store, not you. The fastest way to keep the list fresh is to let them send it with a form and to have the store appear in your locator, ready for you to check. This tutorial shows how to do that with Gravity Forms and the free WP Store Locator plugin.

The problem with typing stores in by hand

WP Store Locator stores each place as a post with an address and a pair of coordinates. Adding one by hand means opening the editor, typing the name, the street, the city, the state, the zip code and the country, and then letting the plugin look up the coordinates. It takes a minute or two for one store. For fifty new partners it takes an afternoon, and every copy and paste from an email is a chance for a mistake. Meanwhile the partners have already typed all this information once, in an email or a spreadsheet or a form.

A Gravity Forms form already knows how to collect that information in a clean, validated way. What is missing is the last step: turning the submission into a store in the locator. That is what the Gravity Forms Store Locations Premium Add-on does.

The idea in one minute

You build a normal Gravity Forms form with a store name, an Address field, a phone, an email, a website and a category. You add a Store Locations feed to the form. When someone sends the form, the add-on creates a store in WP Store Locator with the same values, finds the coordinates, and leaves a note on the entry. By default the new store is pending, so it waits for your review. When you publish it, it appears in the search and on the map of your store locator.

The store is created in the way that WP Store Locator creates its own stores: a post of the type wpsl_stores with the wpsl_ fields for the address, the coordinates and the contact details, plus the store categories. Nothing is stored in a side table, so everything that the plugin does with a store works as usual.

Step 1: build the form

Start with the fields that a store needs. A single line text field for the store name, an Address field for the place, a paragraph field for a short description, and optional phone, email and website fields. Add a text field or a drop down for the category if you use categories in your locator, such as dealers, service centres or showrooms.

The Gravity Forms Address field is the best choice, because it has separate inputs for the street, the city, the state, the zip code and the country. The add-on reads these parts one by one and saves each of them in the matching WP Store Locator field, and it joins them into one line for the geocoder.

A Gravity Forms form with the fields store name, address, about the store, phone, email, website and category filled in, and a Submit button
The visitor fills in a normal Gravity Forms form.

Step 2: add the feed

Open the form, go to Settings, then Store Locations, and add a feed. Write the store name with a merge tag, for example the store name field. Pick the Address field. Pick the phone, email and website fields. In the categories box write a merge tag for the category field, or a fixed name if every store from this form belongs to the same category.

The Store Locations feed settings of a Gravity Forms form: store name, description, categories, the address field, geocoding, contact fields and publishing
The feed picks the fields, the geocoder and how new stores are published.

The most important choice is Show the store on the locator. For a form that anyone can fill in, keep the default: after you publish it. The store is saved as pending, which WordPress and WP Store Locator treat as not public, until you look at it and publish it. For a closed form, such as a partner portal behind a login, you can choose at once.

Step 3: choose how coordinates are found

A store without coordinates cannot be found by the search of the locator. The add-on gives you two ways to get them, and you can combine them.

  • Coordinates in the form. If the form has a latitude field and a longitude field, for example hidden fields that a map picker fills, they are used as they are. If they hold a valid pair, nobody is asked for anything. This costs nothing and sends no address anywhere.
  • Your own geocoding key. If the form has no coordinates, the add-on joins the street, city, state, zip code and country and asks the geocoder that you chose: Google, Geoapify or Mapbox. You paste the key once in the add-on settings. The request is made by your server, one request for each submission that needs it.

If the geocoder cannot place the address, the add-on does not guess. It saves the store as a draft without coordinates and writes a note on the entry that says why. A draft is never on the map, so a typo in an address cannot put a store in the wrong city. WP Store Locator can find the coordinates of such stores later with its Geocode action in the store list.

Step 4: review and publish

After a submission, open Store Locator and All Stores in the WordPress admin. The new store is there, with its categories, its address and its status. Check the details and publish it. If you chose at once, the store is already live.

On the page with your store locator, the new store appears in the list and on the map, and the search finds it by name, address or distance.

The WP Store Locator page with a map and a list of stores, including the store that a visitor sent with a Gravity Forms form
The new store is on the WP Store Locator map once it is published.

Each Gravity Forms entry also gets a note with the store number and its state, so you can always find the store that belongs to an entry, and see at a glance whether it is published, waiting for review or a draft.

What happens when the input is wrong

Real forms get bad input. The add-on checks every value before anything is saved. A latitude outside the range of minus 90 to 90, a longitude outside minus 180 to 180, text such as abc, an exponent such as 1e1, a missing number and the point 0,0 are all refused as coordinates. A phone number keeps only digits, plus, brackets, dots, dashes and spaces. An email that is not an email address and a website that does not start with http or https are dropped. Tags are removed from the name and the description.

A problem never loses the submission. The entry is saved by Gravity Forms first, and the feed runs after it. If the feed cannot make a store, the entry stays, with a note that tells you what to fix.

Keep the locator in step with the entries

Entries change. You correct a typo in the street, a partner moves, or a spam submission arrives. With the sync options on, the store follows the entry. Edit the entry in Gravity Forms and the store is updated, including a cleared phone number. The status that you set in WP Store Locator is kept, so an edit does not hide a store that you published. If an edit leaves a published store without coordinates, it goes back to a draft rather than staying on the map without a place. Trash the entry, mark it as spam or delete it, and the store is moved to the trash of WordPress, where you can restore it.

A worked example: a network of bike repair shops

Imagine a network of independent bike repair shops. The site has a store locator with forty shops. A shop owner who wants to join opens a page with the form, types the name of the shop, the address, the phone number and the website, and picks the services that the shop offers from a drop down. The feed uses the shop name as the store name, the Address field for the place, the services as the category, and the Google key of the network for the coordinates. The owner of the network gets the usual Gravity Forms notification, opens the store list, sees the new shop as pending, checks the address on the map preview and publishes it. The whole review takes less than a minute, and nobody has typed an address twice.

Several forms, several feeds

A feed belongs to a form. You can give each kind of store its own form and its own category, for example one form for dealers and one for service centres. You can also add several feeds to one form, each with a condition. A visitor who ticks that the place is also a service point can create a second store with a different category.

Paid listings and delayed feeds

For a directory where listings are paid, switch on the delayed feed option. The store is created only when the payment is completed. An abandoned payment leaves no store in your list.

Costs and privacy

With coordinates from the form there is no cost and nothing leaves your site. With a geocoder you pay the provider for the requests, and you choose the provider and the plan. The add-on asks once for each submission that needs it, never for a submission that already has valid coordinates, and it keeps no list of addresses. With a geocoder, the address that the visitor typed goes to the service that you chose, so mention it in your privacy policy. The keys are saved as password fields and are not shared with WP Store Locator.

Who needs this

  • Franchises and dealer networks that let new locations add themselves for approval.
  • Directories of clinics, studios, shops and restaurants that add their own listing.
  • Community projects: collection points, repair cafes, free libraries and charging points.
  • Agencies who set up locators for clients and want the client to stop emailing spreadsheets.

What it does not do

It creates, updates and trashes stores. It does not draw a map in the form; for a map where a visitor clicks to choose a place, use a map picker field and send its value to this add-on as the latitude and longitude. It does not set opening hours, custom fields or store images, and it does not change the settings of WP Store Locator. It never touches stores that you entered by hand.

Frequently asked questions

Do I need a paid add-on for WP Store Locator?

No. The free plugin from WordPress.org is enough.

Which versions is it tested with?

WP Store Locator 3.1.0, with Gravity Forms 3.1.2 on PHP 8.3 and Gravity Forms 2.9.8 on PHP 7.4.

Do I need latitude and longitude?

No. Give the add-on your Google, Geoapify or Mapbox key and it finds them from the address, only when the form has none.

Can I stop spam from reaching the map?

Keep the default, which holds every new store as pending until you publish it, and use the spam tools of Gravity Forms on the form. Stores of entries that you mark as spam are moved to the trash.

Get started

The Gravity Forms Store Locations Premium Add-on turns Gravity Forms submissions into WP Store Locator stores, with coordinates from the form or your own geocoding key. See the features, the price and the setup guide on the add-on page.

See the Store Locations add-on

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