Black Friday & Cyber Monday
50% OFF All plans, upgrades & renewals
View offers

EXTENSIONS

Create and configure AJAX Forms

Create a GEO my WP AJAX directory, configure initial results, automatic submission, pagination, map placement and optional boundary filtering.

4 min read · Updated December 1, 2026

Create an AJAX Forms directory when visitors should refine searches and browse results without a full page reload. Start with one working form on one page, then add optional map and pagination behavior.

Prepare the records and components

  • Install and activate GEO my WP and AJAX Forms.
  • Enable the locator component for posts, BuddyPress members, WordPress users or BuddyPress groups.
  • Install the corresponding premium locator where required. BuddyPress directories also need their BuddyPress components.
  • Prepare records that your selected search can find. Proximity searches need saved locations and a working geocoder for the origin.

Premium Settings can add further fields and presentation options but is not required for basic AJAX Forms. Keep optional integrations disabled in your first development test unless the directory needs them.

Create the correct AJAX form

  1. Open GEO my WP → Forms and use the new-form control.
  2. Choose the AJAX form for the relevant component: Posts Locator, BP Members Locator, Users Locator or BP Groups Locator.
  3. Give it a recognizable name.
  4. Configure the component's content selection and search fields.
  5. Save the form and note its ID.

The choices depend on the active locator components. Enabling AJAX Forms does not turn every existing ordinary form into an AJAX form.

Configure Page Load Results

Choose whether the form should show results before a visitor searches and set the initial search criteria. The AJAX-specific Results per page setting controls the initial batch; a new form defaults to 10.

After a visitor submits a search, the submitted-search configuration takes over. Check both stages. Changing an initial page size does not mean that every later pagination or per-page control has the same value.

Choose automatic or explicit searches

Automatic submission is enabled by default for new AJAX forms in the inspected extension. With that behavior enabled, supported input/select changes trigger the same-page search workflow. Text fields use change/submit handling; this is not a promise of a new server search after every typed character.

Visitors can also use the form's submit action. For the first test, keep the form and results on the same page. A form configured to send visitors to a separate results page is a different navigation workflow; verify it separately before relying on in-place updates.

Choose Search Results pagination

Under Search Results → Pagination, choose the Pagination Type:

  • Load more button: requests another batch of matching records.
  • Numeric pagination: switches between numbered pages.
  • Infinite Scroll (beta): requests more results through the supported scrolling presentation.

Set Loader label for the Load more button or infinite-scroll loader. Numeric pagination does not use that label in the same way. New forms default to Load more with the label “Load more.” Test a search with enough results to require a second batch or page.

Choose Results Map placement

Map Usage offers:

  • Disabled: no results map for this form.
  • Results template file: include the map through the selected results presentation.
  • Custom location using shortcode: place the map elsewhere on the same page with that form's map shortcode.
[gmw form="123"]
[gmw map="123"]

123 is an example ID. Replace it with the actual saved AJAX form ID. Use the second shortcode for custom map placement and select the matching Map Usage option; do not add a second map unintentionally while also displaying one in the results template.

Configure the optional boundary filter

Map boundaries Filter (Beta) searches within the visible map bounds when the map position changes. Its usage setting offers disabled, always enabled or a visitor-controlled filter checkbox. Set a clear checkbox label when using the manual filter.

Test dragging and zooming, turning the filter on/off, submitting an address search and paging the results. The behavior depends on successful map events and AJAX responses; verify the chosen provider/template combination rather than assuming it from the setting's presence.

Choose compatible templates and markers

Select the search/results templates offered for this AJAX component. Configure the available marker grouping and info-window controls as needed. If using an older custom AJAX template, review Legacy Stylesheet; it is not a required switch for every new form.

For marker details, choose an offered standard or popup info-window presentation and a compatible template. The map integration supports fetching its content through AJAX. Check the configured address, image and other available component details, the loading state and the close action. If a window stays empty, inspect its request/response separately from the main search request.

Test the embedded directory

  1. Open the frontend and check the initial result state.
  2. Submit a search with known matching records and verify that results update.
  3. Change each configured filter and confirm the intended inclusion.
  4. Check pagination or Load more and any per-page/order controls.
  5. Check the map, marker details and optional boundary filtering.
  6. Try a search with no matches.
  7. Repeat on a phone and as a signed-out visitor.

If updates stop, inspect the browser console and AJAX response for an error, then compare a development copy without the relevant script optimization/cache rules. Confirm the embedded form ID, AJAX form type, active component and saved search conditions before changing templates.