Title: ACF Google Maps Radius Search
Author: raiserweb
Published: <strong>June 16, 2016</strong>
Last modified: June 7, 2016

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/acf-google-maps-radius-search.svg)

# ACF Google Maps Radius Search

 By [raiserweb](https://profiles.wordpress.org/raiserweb/)

[Download](https://downloads.wordpress.org/plugin/acf-google-maps-radius-search.zip)

 * [Details](https://test.wordpress.org/plugins/acf-google-maps-radius-search/#description)
 * [Reviews](https://test.wordpress.org/plugins/acf-google-maps-radius-search/#reviews)
 *  [Installation](https://test.wordpress.org/plugins/acf-google-maps-radius-search/#installation)
 * [Development](https://test.wordpress.org/plugins/acf-google-maps-radius-search/#developers)

 [Support](https://wordpress.org/support/plugin/acf-google-maps-radius-search/)

## Description

This plug-in allows search results to be ordered by distance from a specified location.

The plugin only works when the posts have been given an address via the Advanced
Custom Field Type ‘Google Map’, and the search results page url contains longitude(‘
lng’) and latitude (‘lat’) $_GET variables.
 More technical information is contained
in the FAQ section.

This plugin is made to help developers create a radius search result, in conjungtion
with Advanced Custom Field Type ‘Google Map’.

Note – this plugin works in conjunction with the Advanced Custom Field Type ‘Google
Map’.

## Installation

 1. Upload this plugin to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Manage competition forms, see and export entries, and select winners via the Competitions
    menu

## FAQ

  What is this plugin for?

This plugin is for when you are using the Advanced Custom Fields Type ‘Google Map’
on posts, and you wish to display a distance ordered search results page on your
site.

  Why do I need this plugin?

Unfortunately, the Advanced Custom Fields Type ‘Google Map’ does not make it easy
to query posts based on a radius distance search. This plugin makes this possible.

  How do I use this plugin?

To use this plugin, first install the plugin as normal. The plugin will then work
whenever you add ‘lng’ and ‘lat’ variables into a search results page url. For example:
example.com/search/?lng=51.023232&lat=12.232323

  How do I add lng and lat values to the search page URL?

The best way to do this, is to use the Google Places Autocomplete API to allow users
to select a location in your search form. Upon selecting a location, you will be
able to access the lng and lat values provided by Google. These can then be populated
into the search result URL.

  Anything else I should know?

Yes, your Advanced Custom Field Type ‘Google Map’ will need to be named ‘address’.

## Reviews

![](https://secure.gravatar.com/avatar/051872f6b0eeae4ec8a88843deea7ec0e3f87d71f8210f7e8c6026bea0934bad?
s=60&d=retro&r=g)

### 󠀁[Great plugin!](https://wordpress.org/support/topic/great-plugin-27226/)󠁿

 [mrank](https://profiles.wordpress.org/mrank/) July 30, 2020

Works perfectly and can be used to create a radius based sorting function with custom
post types. Thank you very much for this!!

![](https://secure.gravatar.com/avatar/fe78c5d18fd3758bc7f7f0c45b0613d0cbdc151ccd94f70476e5124d2d20ad58?
s=60&d=retro&r=g)

### 󠀁[It works.](https://wordpress.org/support/topic/ti-works/)󠁿

 [valerio_cas](https://profiles.wordpress.org/valerio_cas/) July 30, 2018 1 reply

Plugin does what it says on the box. This is obviously aimed at developers. You’ll
need to add your own code to add the other search fields and to get the location
you are searching from.

![](https://secure.gravatar.com/avatar/c8e17d7a5164a00d1684ccb9adba6c45b86d66fa4c307757638239bee0d21e5c?
s=60&d=retro&r=g)

### 󠀁[Example Code Please](https://wordpress.org/support/topic/example-code-please-2/)󠁿

 [russell44](https://profiles.wordpress.org/russell44/) December 21, 2016 1 reply

Could you post example code of using this plugin. I’ve created the query string 
with the lat and lng variables, and I’m using the address acf field, but I don’t
see how I’m suppose to get the list of locations sorted by their distance. Thanks.

 [ Read all 3 reviews ](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/)

## Contributors & Developers

“ACF Google Maps Radius Search” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ raiserweb ](https://profiles.wordpress.org/raiserweb/)

[Translate “ACF Google Maps Radius Search” into your language.](https://translate.wordpress.org/projects/wp-plugins/acf-google-maps-radius-search)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/acf-google-maps-radius-search/),
check out the [SVN repository](https://plugins.svn.wordpress.org/acf-google-maps-radius-search/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/acf-google-maps-radius-search/)
by [RSS](https://plugins.trac.wordpress.org/log/acf-google-maps-radius-search/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * first release

## Meta

 *  Version **1.0**
 *  Last updated **10 years ago**
 *  Active installations **50+**
 *  WordPress version ** 3.0.1 or higher **
 *  Tested up to **4.5.33**
 *  Language
 * [English (US)](https://wordpress.org/plugins/acf-google-maps-radius-search/)
 * Tag
 * [acf](https://test.wordpress.org/plugins/tags/acf/)
 *  [Advanced View](https://test.wordpress.org/plugins/acf-google-maps-radius-search/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/)

## Contributors

 *   [ raiserweb ](https://profiles.wordpress.org/raiserweb/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/acf-google-maps-radius-search/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://raiserweb.com)