Home Forums Add-ons Repeater Field Only display Repeater row with certain Select value Reply To: Only display Repeater row with certain Select value

  • Hi John, thanks so much for your reply. I tried you example and many variations of it, but I’m not getting any output onto the page. Not even wrong stuff.

    Here is the stock standard code I’ve used for the Testimonial page, where all Repeater rows are displayed.

    <div class="testimonials">
    	<?php if( have_rows('testimonial_repeater') ): ?>
    		<?php while( have_rows('testimonial_repeater') ): the_row(); 
    			$text = get_sub_field('testimonial_text');
    			$type = get_sub_field('testimonial_type');
    				<?php echo $text; ?>
    		<?php endwhile; ?>
    	<?php endif; ?>

    With the Workshop page, I want the same thing, but just the ones selected with Workshops in the Select field.

    I’ve checked for typos and done a lot of reading. Still not sure what I’m doing wrong.

    As always, any and all help is greatly appreciated.