Skip Navigation

[Resolved] Toolset Map

This support ticket is created 3 years, 5 months ago. 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

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by garenM 3 years, 5 months ago.

Assisted by: Jamal.

Author
Posts
#2123263
Capture.JPG

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]');

#2123489

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.

#2124903

My issue is resolved now. Thank you!