Skip Navigation

[Resolved] Show the closest location near me on the search result query

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 1 voice.

Last updated by Minesh 1 week, 6 days ago.

Assisted by: Minesh.

Author
Posts
#2791941
Capture.PNG

I have custom post type (Clinics) and there is map showing all locations. On the search bar, I want to show the closest clinic near me on the search result when I search my location address or postcode. How can I achieve that?

This is the development site I worked on: hidden link

If I try to search my postcode: 6000. It doesn't display the locations near me

I hope you can help me on this issue as this is very important.. PLEASE PLEASE!!!

#2791956

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Here is the official Doc that shows how you can setup the distance filter:
- https://toolset.com/course-lesson/filtering-and-ordering-map-markers-by-distance/

If you check there is a option "Distance center is set from user location" are you looking for that optoin?