I am building a custom image slider.
I have a custom post type called 'slide' with an associated custom taxonomy called 'slideshows'.
When you create a new 'slideshow' it add to a custom table in the DB called wp_slideshowsmeta with columns for "meta_id, slideshows_id, meta_key, and meta_value".
Each slideshow has its own settings page using 'slideshows_add_form_fields' and 'slideshows_edit_form_fields'.
To call a slideshow I created a function ( 'gps_slider()' ) that is placed in the template file where you want the slideshow to appear. It has one parameter which is the slideshow name.
Everything works great... it loads the appropriate slideshow and functions. BUT, all the slideshows use the first one's settings.
I need to pass the slideshow name to my function that uses 'wp_localize_script' to pass the settings to the javascript.
I'm guessing it's likely a foreach loop, but can't seem to see how to construct it.
Any help is greatly appreciated.
Bryce