I have been looking for a help on the forum, but nothing matches really my problem.
I am actually trying to use bxSlider with Wordpress. My problem is that where I create my gallery image (a template page in a child theme) I need to pass the image's urls that I got dynamically from previous page to js file to create my gallery image with the option propose by bxslider. (In particular with thumbnail)
To pass variables from php to js, I normally use wp_localize_script in function.php or a plugin but not a template page. And in this case I can't even enqueue my script.
How can I pass variables from template page to javascript file with dynamic variable (so impossible for me to pass through function.php)
Thank you for your help !