Hey Im trying to echo the below on my php template but its not working. Its return a basic map (attached). Can you please advise
echo do_shortcode('[wpv-map-render map_id="map-2" map_height="764px" single_zoom="17" marker_icon="//staging-buyhome.actiondigital.agency/wp-content/uploads/2021/07/property-spot.png"][wpv-map-marker map_id="map-2" marker_id="marker-5" marker_field="wpcf-location"][/wpv-map-marker][/wpv-map-render]');
Hello and thank you for contacting Toolset support.
The [wpv-map-marker] needs to be added inside a view or a content template, so it knows what post to pull the location from. Do the following:
echo do_shortcode('[wpv-map-render map_id="map-2" map_height="764px" single_zoom="17" marker_icon="//staging-buyhome.actiondigital.agency/wp-content/uploads/2021/07/property-spot.png"][/wpv-map-render]');
Then put the marker shortcode inside a view:
[wpv-map-marker map_id="map-2" marker_id="marker-5" marker_field="wpcf-location"][/wpv-map-marker]
Then display the view using custom code:
echo do_shortcode('[wpv-view name="Name or slug of the view"]');
I hope this helps. Let me know if you have any questions.
My issue is resolved now. Thank you!