Displaying images from multiple media picker in a carousel element
I know this has been asked before, but no solution I've tried has worked for me. I need to insert X number of images from a multiple media picker into a a carousel element.
Currently I merely extract each image using a hardcoded index.
But this doesn't work when the client should be able to insert any number of images. I need to iterate over each image with this markup, while also changing the data-slide-number each time, so that it matches to the thumbnails I have associated with it.
How can I iterate over X amount of images and extract their URL's to use in my carousel?
Displaying images from multiple media picker in a carousel element
I know this has been asked before, but no solution I've tried has worked for me. I need to insert X number of images from a multiple media picker into a a carousel element.
Currently I merely extract each image using a hardcoded index.
But this doesn't work when the client should be able to insert any number of images. I need to iterate over each image with this markup, while also changing the data-slide-number each time, so that it matches to the thumbnails I have associated with it.
How can I iterate over X amount of images and extract their URL's to use in my carousel?
Hi
Ive not tested this but could you do something like thi?s:
is working on a reply...