Build a store locator from WordPress posts with GEO my WP’s Posts Locator. Save an address and map location for each branch, then let visitors search by address and radius and see nearby stores in a results list and on a map. You can use an existing store post type instead of recreating your listings in a separate directory.
This walkthrough uses the core Posts Locator extension included with GEO my WP. The screenshots show version 4.5.5.7 with OpenStreetMap and fictional sample branches.
1. Set up Posts Locator
Install and activate GEO my WP. Under GEO my WP → Extensions & Licenses, confirm that Posts Locator is active.
Open GEO my WP → Settings → Maps & Geocoders and configure the provider you want to use. The example uses OpenStreetMap/Leaflet. If you choose Google Maps, configure the required API keys for that provider before continuing.
Under Settings → Posts Locator → Post Types, select the post type that holds your stores. Use your existing store or location post type if you have one; ordinary Posts are enough for this example. Save the settings so the location editor appears on those records.
2. Give each store an address and map pin
Create or edit a separate post for each branch. Add its public name, address, opening hours and useful details such as where to park. Assign a category, such as Groceries or Homewares, if visitors should be able to filter by store type.
Find the Location panel on the post’s edit screen. Enter the address, select the matching suggestion when offered, and check the map pin at a suitable zoom level. Click Save location, then publish or update the post. The address written in the post body is useful to readers; the separately saved location makes the store searchable.
Start with three sample branches: two near your test address and one farther away. That gives you a quick way to tell whether the search radius is working. Follow the guide to geotagging a post for the location controls.

3. Create and place your locator form
Open GEO my WP → Forms. In Create new form, choose Posts Locator Form. Give it a useful name, then configure these settings:
- Search Form → Post Types: choose the post type containing your branches. If you show results before a visitor searches, also check Page Load Results → Post Types.
- Search Form → Address Field: keep an address input so visitors can enter the place they want to search near.
- Search Form → Radius Field: choose Select dropdown and put each distance on a separate line under Dropdown Options. For example, use 2, 10 and 25.
- Search Form → Distance Unit Field: choose miles or kilometers to match those radius values.
- Search Form → Taxonomies: open Category and set Usage to Select dropdown to add category filtering.
- Form Submission: enable the result list and results map. Use Map Settings to set the map dimensions.
Click Save Changes and copy the form’s shortcode. For example, [gmw form="1"] embeds form 1; use the ID shown for your own form.
Create a WordPress page titled Find a Store. Add a Shortcode block containing that shortcode, or paste it into the classic editor, and publish the page. See the Posts Locator setup guide for more form options.
Can I use existing posts and categories?
Yes. Configure Posts Locator for the post type that already holds your store records, and save a location for each searchable post. Existing address text in the post body is not enough by itself; each record needs the saved location used by the search.
Use the categories already assigned to those posts. For a custom store post type, choose its relevant taxonomy in the form instead of creating duplicate store records.
4. Test the page like a customer
- Search from your test address with a narrow radius. Confirm the nearby branches appear and the distant branch stays out of the results.
- Increase the radius and confirm the farther branch appears when it falls within range.
- Select a category and confirm the results match both the category and the search radius.
- Open a result and verify the address and hours. Check that the pin lands at the correct branch.
- Run a search with no nearby stores and check that the page makes the next step clear.
- Repeat on mobile to confirm the search, results and map are easy to use.
In the example below, a search near Central Park returns two branches within 2 miles. Increasing the radius to 10 miles also returns the downtown branch. Selecting Groceries narrows the list to the branches assigned that category.

A search radius helps visitors find nearby stores. If the business needs to measure driving distance or enforce a delivery boundary, treat that as a separate requirement and verify the calculation or rules before using the locator for that purpose.
Start with a few locations
Get the search working with a small set of stores before adding the rest of your network. Once the results and pins are accurate, link to the locator from your site menu so customers can find it from any page.
Get GEO my WP to start with core Posts Locator, or explore GEO my WP’s features for other directory and mapping workflows.
