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') ): ?>
<ul>
<?php while( have_rows('testimonial_repeater') ): the_row();
$text = get_sub_field('testimonial_text');
$type = get_sub_field('testimonial_type');
?>
<li>
<?php echo $text; ?>
</li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
</div>
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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.