I’d like to add an HTML audio tag to the Caption of an image in the Carousel: is that possible? I can add the audio tag to the Desciption, but I can’t seem to get it added to the Caption.
I have a custom meta field,
named 'audio_url', added to images’ Attachment Details, then use that value in
wp_audio_shortcode()to generate an audio tag.
Then I add the audio tag to the image’s Description in the Carousel, using
'jp_carousel_add_data_to_images'filter with a
data-image-description: That works well. But I can’t seem to find the way to add the audio tag to the Caption instead of the Description (ie, there’s no
data-image-captionas far as I can tell) . Thanks for any pointers.
- The topic ‘Add Audio to Carousel?’ is closed to new replies.