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

Google Map API not working in wordpress plugin

Updated January 22, 2018 15:08 PM

array_values works on localhost but not in WEB

Updated March 31, 2018 12:08 PM

Remove extra Google Maps script

Updated February 27, 2016 01:03 AM