Saltar navegación

[Resuelto] Dynamic Google Maps link

This support ticket is created hace 4 años, 7 meses. 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

Zona horaria del colaborador: Africa/Casablanca (GMT+01:00)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Jamal hace 4 años, 7 meses.

Asistido por: Jamal.

Autor
Mensajes
#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>enlace oculto</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.