Title: Example Code Please
Last modified: December 21, 2016

---

# Example Code Please

 *  [russell44](https://wordpress.org/support/users/russell44/)
 * (@russell44)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/example-code-please-2/)
 * 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.

Viewing 1 replies (of 1 total)

 *  Plugin Author [raiserweb](https://wordpress.org/support/users/raiserweb/)
 * (@raiserweb)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/example-code-please-2/#post-8576293)
 * Hi Russell44
 * The plugin will kick in on the search results page. The returned list of results
   will be ordered by distance.
 * I will think about adding a function to the plugin, to allow a get_posts style
   call

Viewing 1 replies (of 1 total)

The topic ‘Example Code Please’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/acf-google-maps-radius-search.svg)
 * [ACF Google Maps Radius Search](https://wordpress.org/plugins/acf-google-maps-radius-search/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acf-google-maps-radius-search/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acf-google-maps-radius-search/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-google-maps-radius-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-google-maps-radius-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-google-maps-radius-search/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [raiserweb](https://wordpress.org/support/users/raiserweb/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/example-code-please-2/#post-8576293)