Skip Navigation

[Resolved] how to use longitude and latitude fields to show location on the interactive map

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.

This topic contains 1 reply, has 1 voice.

Last updated by davidB-59 1 week, 4 days ago.

Assisted by: Christopher Amirian.

Author
Posts
#2790255

I would like to add on the map, the locations of differents sites, as you show on your video tutorial :
https://toolset.com/course-lesson/displaying-a-list-of-posts-on-a-map/

My sites can not have an adress because it s in laos, in country side where there is no referensable adress. So I want to use longitude and latitude for each site and display them on the map, but I can not find the way to do it.

I create 2 fields (longitude and latitude) in a fieds group but on the modification of the display page, I can not find the option to use this fields, dynamicly.

Can you help ?

Thanks

#2790279

Christopher Amirian
Supporter

Languages: English (English )

Hi,

Welcome to Toolset support.

Please use the method below:

https://toolset.com/forums/topic/using-maps-with-two-custom-fields-longitude-and-latitude/

Thanks.

#2790318

Thanks a lot for your answer
I don t know where I have to add the code. I understand that it s necessary to add a block on the page of the map, and including the shorcode, but I can not find the may to create the link with the marker. I can not select the new block on the list for localisation.

But anyway, I find another way : I add the longitude and latitude of the site directly on the field "adress". and it s seems work for me. (I have a small problem now with 2 markers for the same site...)