Turns ACF address field into a distance radius search on a search results page. Useful for developers.
Author: | RaiserWeb (profile at wordpress.org) |
WordPress version required: | 3.0.1 |
WordPress version tested: | 4.5.2 |
Plugin version: | 1.0 |
Added to WordPress repository: | 16-06-2016 |
Last updated: | 07-06-2016
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 100 |
Rated by: | 3 |
Plugin URI: | |
Total downloads: | 2 931 |
Active installs: | 80+ |
Click to start download
|
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’.
ChangeLog