I have implemented a custom meta box in a template where I am also using media tags to generate a list of images for an image slider.
I want to be able to us the data from this meta box to choose which tag is selected by for use in the slider:
Right now each template is as so:
$media_items = get_attachments_by_media_tags('media_tags=vacation');
I have a variable:
$thistag = $mediatag_selector->the_value('s_single');'
and I'd like to be able to use that variable to define which media tag is selected
to acheive an equivalent to this:
$media_items = get_attachments_by_media_tags('media_tags=$thistag');
Is this even possible? I'm kind of learning this php as I go and I'm not sure if I'm trying to do something impossible.