Skip Navigation

[Resolved] Dynamic Google Maps link

This support ticket is created 3 years, 11 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, 11 months ago.

Assisted by: Jamal.

Author
Posts
#1872111
#1873871

Hello and thank you for contacting the Toolset support.

Currently, the button block, which may be the link, does not support pulling the latitude and longitude from an address field. So, you will need to use Types shortcodes to pull the coordinates. You can use shortcodes inside a "Fields&Text" block or inside a Classic block.
The Types shortcode accepts a format attribute that can take a placeholder for the latitude and longitude. Check the summary in this previous ticket https://toolset.com/forums/topic/how-to-use-the-longitude-and-latitude-fields-in-a-view/
I was able to build a link for a "location " field with the following code:

<a href="<em><u>hidden link</u></em> field='location' format='FIELD_LATITUDE, FIELD_LONGITUDE'][/types]">Go to map</a>

I hope this helps. Let me know if you have any questions.