Use Posts Locator to turn posts, pages or supported custom post types into a searchable directory. This guide starts with a small set of listings, adds their locations, and places a GEO my WP search form on a WordPress page.
What you need
- GEO my WP installed, with Posts Locator available.
- The post type you want to use enabled in the Posts Locator settings.
- Working map and geocoding provider settings for address lookup and distance searches.
- A few published sample listings with addresses you are permitted to display.
If the plugin is not configured yet, start with Install and configure GEO my WP. For a simple first test, use ordinary WordPress posts before adding custom post types or additional integrations.
Prepare the listings
Create two or three sample posts. Give each a recognizable title and enough content to identify it in search results. Categories can help visitors narrow the directory, and featured images can make results easier to browse.
For example, a business directory might have posts for a café, a studio and a repair shop. Use real location data for your test, while keeping any private address information out of a public directory.
Save a location for each listing
- Edit a sample post and find its GEO my WP location section.
- Enter the address and choose the appropriate address suggestion when available.
- Check the resolved address and coordinates. If a map is displayed, confirm that its marker is in the expected place.
- Save the location using the available location controls, then save or update the WordPress post.
- Repeat for the other sample listings.
The saved location is essential. An address written only in the post body does not supply the geographic record that Posts Locator uses for proximity searches.
If the location section is missing, check that this post type is enabled in Posts Locator. If the address does not resolve, check the geocoding provider configuration before trying to adjust the search form.
Create a Posts Locator form
- Open GEO my WP → Forms.
- Use the new-form control and choose the ordinary Posts Locator form type.
- Give the form a name you can recognize later, such as Business directory.
- Open its settings and review the content and search options described below.
For this first guide, use a standard Posts Locator form. AJAX Forms and Global Maps provide additional form types with their own extension requirements and behavior.
Choose the search and results options
Start with the post type containing your sample listings. Then configure the search fields and output for this form.
| Area | What to check first |
|---|---|
| Content selection | Include the post type containing your sample posts. Review any predefined content restrictions. |
| Search Form | Enable the address and distance controls you want visitors to use. Add the relevant category or taxonomy filtering available to your form. |
| Page-load results | Choose what visitors see before submitting a search. |
| Search Results | Choose the results template, the number of results per page and the details displayed with each listing. |
| Results Map | Choose whether a map appears and how it accompanies the results. |
Save the form. Keep the initial setup simple: first confirm that your sample listings appear, then introduce extra filters or more advanced presentation options one change at a time.
The controls available depend on the installed components and extensions. Premium Settings adds further filtering, sorting, messaging and marker options; its presence is not assumed for this starting workflow.
Embed the form on a page
Copy the shortcode supplied for your saved form. It uses this format:
[gmw form="123"]
123 is an example. Use your own saved form ID or copy the exact shortcode provided by GEO my WP.
- Create or edit the WordPress page that will display your directory.
- Add the shortcode to a Shortcode block, a supported shortcode element in your page builder, or the content editor.
- Save the page and open its frontend preview.
- Check that the search form and intended results output appear.
The standard setup can display the form and results on the same page. Separate search and results pages, standalone maps and custom template integration are separate workflows; establish the basic embedded directory first.
Test the directory
- Search near one of your saved sample locations, using a radius large enough to include it.
- Confirm that the expected listing appears and its title opens the correct post.
- If a results map is enabled, compare its markers with the saved listing locations.
- Try a category filter and a smaller radius, where those controls are enabled.
- Try a location with no nearby listings and review the no-results state.
- Check the page on a phone and as a visitor who is not signed in.
GEO my WP uses saved coordinates to determine proximity. If a listing is missing, check its saved location, publication status, selected post type, filters and search radius before changing the map styling.
Continue building
Once the basic directory works, refine its filters and result details, configure the map if needed, and add extensions for your project's requirements. Return to the documentation home for the next guides, or ask us for help with the specific behavior you want to achieve.
