Problem:
The issue here is that the customer wanted to use PHP to display the map and address of a location.
Solution:
The is possible by using the shortcode wrapper function in php "do_shortcode()". The function allows you to use shortcodes in your php template.
So you simply need to do a setup like this in your page template.
echo do_shortcode ('[wpv-map-render map_id="map-1"]'); echo do_shortcode ('[wpv-map-marker map_id="map-1" marker_id="marker-1" marker_field="wpcf-address"][/wpv-map-marker]');
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.
Our next available supporter will start replying to tickets in about 0.27 hours from now. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
- | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 14:00 – 18:00 | 13:00 – 18:00 | - |
Supporter timezone: America/Jamaica (GMT-05:00)
This topic contains 4 replies, has 2 voices.
Last updated by GeorgeM4735 8 years ago.
Assisted by: Shane.