AJAX Forms

Instantly display search results without page reloads for a faster, seamless user experience.

AJAX Forms for GEO my WP – Fast, Dynamic Search for WordPress

The AJAX Forms extension allows you to create dynamic, real-time geolocation search forms using GEO my WP’s form builder. These AJAX-powered search forms for WordPress process and display results instantly, without requiring a page reload, delivering a faster and smoother search experience.

  • Faster searches – Results update instantly without reloading the page.
  • Better user experience – Users can refine searches dynamically.
  • Improved performance – Reduces unnecessary page loads and speeds up site interactions.

Check out the live demo to see it in action!


Compatibility

The AJAX Forms extension is compatible with the following GEO my WP extensions, allowing you to create AJAX-powered search forms for each:


Key Features of AJAX Forms

Creating AJAX-powered forms is as simple as using GEO my WP’s form builder. Simply create a new AJAX form, configure the settings, and place the AJAX form shortcode anywhere on your page.

Most AJAX form settings are similar to those of standard forms (Posts Locator, Members Locator, etc.). Below, you’ll find the unique features of AJAX Forms that go beyond standard functionality.


Search Within Visible Map Area (Beta)

The Search Within Visible Map Area feature dynamically updates search results based on the area currently displayed on the map. When users drag, zoom in, or zoom out, the search results adjust automatically to show only locations within the new visible boundaries.

How It Works

  • Filters results based on the current map view.
  • Automatically updates results as users pan or zoom.
  • Provides a seamless and intuitive search experience for location-based searches.

Customization Options

  • Disabled: Turns off the feature.
  • Always Enabled: Keeps boundary-based filtering active at all times.
  • Manual Activation: Adds a checkbox filter on the map, allowing users to enable or disable the feature.

Customizing the Checkbox Label

If using the manual activation option, you can customize the label for the checkbox filter to match your site’s user interface.

Note: This feature is currently in Beta, and improvements may be introduced in future updates.


Flexible Pagination Options

Choose how search results are displayed:

  • Standard numeric pagination – Great for structured searches with defined pages.
  • Load More button – A smooth, modern way to load additional results dynamically.

Smart Marker Clustering for a Clearer Map

Improve map readability by grouping nearby markers using Google’s Marker Clustering. This ensures that overlapping markers are visually managed for a cleaner and more user-friendly experience.


Instantly Loaded Info Windows

The info window (popup displaying location details) is dynamically loaded via AJAX when clicking on a map marker.

  • Choose between standard or popup info windows.
  • Select from different info window templates.
  • Customize displayed information, including address, images, location meta, and more.

Why Use AJAX Forms?

  • Faster Searches – No page reload needed.
  • Better User Experience – Results update instantly.
  • Optimized Maps – Clustered markers improve navigation.

Frequently Asked Questions

What are AJAX search forms?

AJAX search forms allow users to search and filter results instantly without reloading the page. This ensures a faster and more seamless experience, making location-based searches more efficient.

Is the AJAX Forms extension compatible with all GEO my WP components?

Yes! The AJAX Forms extension works seamlessly with Posts Locator core extension, Members Locator core extension, BuddyPress Groups Locator, and WordPress Users Locator.

What customization options are available for AJAX Forms?

You can configure order-by filters, pagination, marker clustering, and info windows to fully customize your search experience. This allows you to control how results are displayed, making searches more dynamic and user-friendly.

Unlimited Features

Unlock all extensions and enjoy unlimited features with our Access Passes. It's the best value for WordPress developers!

View Access Passes

Prefer a Single Extension?

You can purchase this extension only. Perfect if you only need this specific functionality!

**All license options include 1 year of support and updates from the date of purchase. Licenses are billed annually and will renew automatically unless canceled. For additional details, visit our FAQ section or feel free to contact us with any pre-sales question.

Details

  • Version 2.0.1
  • Developed by Eyal Fitoussi
  • Requires WordPress 5.6+
  • Requires GEO my WP 4.0+
  • Live demo
  • View changelog
  • View documentation
  • Ask a pre-sale questions
  • Requirements

    WordPress 5.6 or higher
    GEO my WP 4.0 or higher
    Changelog
    • 2.0.1 - 07/14/24
      • Tweak: add missing function gmw_search_results_meta_fields() to the PeepSo search results template file.
      • PHPCS.
    • 2.0 - 08/26/23
      • This is a major release that is compatible with GEO my WP v4.0. Please read this post before updating the extension on your site.
    • 1.3.3 - 01/30/21
      • Note: this version requires Gthe EO my WP version 3.7.
      • Enhancement: When using the load more button on page load action and before the Per-page select dropdown is triggered, we will get the per page value from the page_load_results tab of the form. Otherwise, when the per-page drop-down is triggered, we will then use that as the per-page value.
      • Tweak: check if the Per-page filter was triggered and pass the value as true. We will use that for the Load More button on page load actions.
      • Filters: JavaScript actions \'gmw_ajaxfms_search_results_start\' and \'gmw_ajaxfms_search_results_end\'.
      • Tweak: use the functions gmw_info_window_permalink() and gmw_info_window_title() to generate the title in the info-window template files.
      • Tweak: get the group\'s location data in the info-window using location ID instead of group ID.
      • Tweak: use the function gmw_search_results_title() to retrieve the user title in the search results template files.
      • Tweak: add location name and features location DB tables columns to the info-window object.
      • Tweak: use the location ID instead of user ID when retrieving the user location data in the info-window.
      • Tweak: add \'results_count\' and \'total_results\' arguments to the JSON object returned from the AJAX search queries.
      • Tweak: add \"title\" as \"location name\" and \"Featured\" as \"featured_location\" DB table column during the AJAX Forms queries.
      • Tweak: add the location meta and hours of operation functions to the Members Locator search result template files for a case that those fields are enabled for the Members locator extension.
      • Tweak: remove the location_meta and hours of operation form editor settings from the Posts Locator AJAX class and use the settings that are a;ready provided by the core GMW_Form_Editor() class.
    • 1.3.2.1 - 8/28/20
      • Fix: properly validate required fields on form submission.
      • Tweak: set \'gmw_filter_object_type_in_where_clause\' to false by default.
      • Tweak: prevent dynamic form submission when required text or select fields change to empty or to the default value.
    • 1.3.2 - 7/20/20
      • Fix: use gmw_search_results_bp_avatar() instead of gmw_search_results_featured_image() to get the groups image in the grid search results template file.
      • Tweak: use the filter \'gmw_disable_query_clause_between\' to disable the coordinates BETWEEN filter of the search queries.
      • Tweak: move the object_type filter of the search queries from the WHERE to the JOIN clause.
      • Tweak: add GROUP BY clause to the Users Locator search query.
      • WPCS.
    • 1.3.1 - 3/23/20
      • New: Horizontal search form template.
    • 1.3.0.1 - 11/15/19
      • Fix: remove debugging alert message.
    • 1.3 - 11/14/19
      • Fix: Load more button doesn\'t work when results are submitted on a different results page where the search form does not exist.
      • Action: JS action \'gmw_ajaxfms_pre_geocoding\' to execute custom code before address geocoding takes place.
      • Tweak: Check if the current page is the results page which is set in the form editor before enabling the results shortcode.
    • 1.2.1 - 08/22/19
      • Fix: form is not submitted into a results page.
      • Fix: prevent submission when the submit button is pressed and address is set as required and not provided.
      • Enhancement: enable results page submission by default when is set in the form editor. To disable a specific search form from submitting into a results page use the shortcode attribute disable_results_page=\"1\".
    • 1.2 - 08/20/2019
      • Fix: add the function \'gmw_get_search_results_permalink\' to the AJAX forms plugin and load it only if the function does not already exist.
      • Tweak: Add a JS solution for the wider search and all results search links of the Premium Settings extension.
    • 1.1.2 - 08/19/2019
      • New: grid style search results template files for posts, members, groups, and users locator AJAX forms.
      • Fix: gmw main JS file doesn\'t load when only the search form loads on the page.
      • Fix: using the wrong function to validate the excerpt in the form settings page.
      • Fix: add a short delay to the dynamic form submission to allow the suggested result from the address autocomplete to auto-populate in the address field before geocoding takes place.
      • Fix: use wp_reset_postdata() after the posts loop to prevent conflicts with other loops.
      • Fix: Issue with pagination when the page first load.
      • Tweak: when \"Page Load Results\" tab is enabled with the \"Default address\" filter, this address will now display in the address field of the search form on page load.
      • Tweak: add user logged-in status to search query cache.
      • Tweak: modify query clauses to better handle the order-by clause when ordering by distance.
      • Tweak: disable stylesheet if GEO my WP 3.3.1 + is installed. The AJAX Forms main CSS is now included in GEO my WP main stylesheet.
      • Filter: new JS filter \'gmw_ajaxfms_address_field_pre_geocoding\' to modify the address before is it geocoded.
      • Action: new action hook on AJAX form submission.
    • Version 1.1.1 - 01/12/2019
      • Requires GEO my WP version 3.2 or higher.
      • New: \"compact\" search form template file.
      • WPCS.
      • Minor bugs fix.
    • Version 1.1 - 10/24/2018
      • This version requires GEO my WP v3.2 or higher.
      • Fix: set \'paged\' parameter to 1 if the value is missing.
      • Filter: ‘gmw_ajaxfms_form_enable_objects_without_location’ to enable/disable objects without location in the search query.
      • Fix: various issues with server-side geocoder.
      • Fix: a conflict between the location info-window and the user\'s location info-window when both open at the same time.
      • Tweak: allow showing objects without a location in search results.
      • Improvement: Modify the BuddyPress Groups and Members location query. The plugin now modified the BuddyPress queries directly and join the locations table. That is instead of having an extra separate query for locations only. Various bugs fix and improvements.
    • Version 1.0 - 8/4/2018
      • Initial release