Hey There,
Here I have post type Certified practitioners,
where I have toolset field Location
hidden link
I want to render the map programmatically And I want it to fetch dynamically location field of each user(each post as I visit).
Display the location via marker
example: hidden link
Here is how I have implemented in the template
hidden link
Can you guide me on how do I achieve this programmatically, It will be great help. Thanks!

Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Keyur,
Thank you for getting in touch.
For clarity are you referring to rendering the map using php code ? Are you customizing your template using PHP code?
Please let me know.
Thanks,
Shane

Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Keyur,
Then you will need to make use of the do_shortcode() built in wordpress function to render the map shortcodes.
We don't have any custom functions that will be able to render the map itself so it will need to be done using the do_shortcode() function.
https://developer.wordpress.org/reference/functions/do_shortcode/
Here is the shortcode to render the map.
https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-render
Here is the shortcode to render the marker.
https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-marker
Please let me know if you have any further questions on this one.
Thanks,
Shane