I combined a jquery slider with the repeater fields.
under the repeater, I have 2 subfields. one called “image_carousel1” and the other “image_carousel_discription”
this slider has a class called “sc-selected” that dynamically appear when an image is selected. (when this class is on an image the image change it’s size).
I’m trying to define that when the class “sc-selected” is on some image and the “data-row” is equal in “image11” and “change_h2″ the “image_carousel_discription” form the same row of the “image_carousel1” will appear,(I defined that in JS func)
this is the code that displays the images and the titles
// check if the repeater field has rows of data
$i = 1;
if( have_rows(‘carousel_images’) ):
// loop through the rows use_cases_fields data
while ( have_rows(‘carousel_images’) ) : the_row();
$image = get_sub_field(‘image_carousel1’);