Problem:
The user was adding a map with markers using a view from the theme template, using the do_shortcode function.
Solution:
Because the user is passing an argument to the shortcode using another shortcode(nested shortcodes), we need to use the Toolset function wpv_do_shortcode instead of do_shortcode.
<?php echo wpv_do_shortcode("[wpv-view name='user-reg-sales-address' user='[wpv-post-author format='meta' meta='ID']']");?>
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv-pre-shortcode
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 |
Zona horaria del colaborador: Africa/Casablanca (GMT+01:00)
Este tema contiene 5 respuestas, tiene 2 mensajes.
Última actualización por hace 4 años, 6 meses.
Asistido por: Jamal.