if (have_rows('testimonial_repeater')) {
while (have_rows('testimonial_repeater')) {
the_row();
if (get_sub_field('testimonial_type') != 'testimonial_type_workshops') {
// not what we want, skip the rest of the loop
continue;
}
// this code will only be run if right type
.... do something ...
} // end while have_rows
} // end if have_rows