Passer la navigation

[Résolu] Dynamic Google Maps link

This support ticket is created Il y a 4 années et 7 mois. 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

Fuseau horaire du supporter : Africa/Casablanca (GMT+01:00)

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Jamal Il y a 4 années et 7 mois.

Assisté par: Jamal.

Auteur
Publications
#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>lien caché</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.