Skip Navigation

[Resolved] display distance from my location of each map search result

This support ticket is created 3 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

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
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9: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: Africa/Casablanca (GMT+01:00)

This topic contains 1 reply, has 2 voices.

Last updated by Jamal 3 years, 10 months ago.

Assisted by: Jamal.

Author
Posts
#1678483

Tell us what you are trying to do?
display distance in miles from my location of each map search result, similar to this: hidden link

when a map location is returned in the list, display how far away it is from my zip code.

Is there any documentation that you are following?
no

Is there a similar example that we can see?
yes: hidden link

What is the link to your site?
hidden link

#1678903

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello and thank you for contacting the Toolset support.

I believe you are looking for the toolset-maps-distance-value shortcode, it will display the distance from the visitor location or a specific location. Read more about the shortcode and its arguments here https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#toolset-maps-distance-value

I hope this answers your question. Let me know if you have any doubts about it.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.