mutiple shortcode instance on the same page

by geeky87   Last Updated January 13, 2018 13:08 PM

i'm building a google map shortcode plugin and i use wp_localize_script to pass variables to js script like (lat , lng , zoom...) . but i have an issue : when i use this shortcode twice or more in a page , just the first one that works .

i know that to solve my issue i should generate a script for each shortcode with unique variable names etc..

does anyone know how this can be accomplished??

Related Questions

Remove extra Google Maps script

Updated February 27, 2016 01:03 AM