Home › Forums › Add-ons › Repeater Field › Syntax to Output Repeater Content in a Flexible Content Layout › Reply To: Syntax to Output Repeater Content in a Flexible Content Layout
Hi @rkeefer
Here’s how you would do this based on the code you’ve provided
elseif( get_row_layout() == 'quotes_slider' ):
$heading = get_sub_field('heading');
$quotes = get_sub_field('quotes');
?>
<div class="ctaContent ctaContent1 ctaTestimonials clearfix">
<h3><?php echo $heading; ?></h3>
<div class="flexslider" id="testimonialsSlider1">
<ul class="slides">
<?php foreach($quotes as $quote): ?>
<li>
<?php echo $quote['subfieldname']; ?>
</li>
<?php endforeach; ?>
</ul>
</div><!-- #testimonialsSlider1 -->
</div>
<?php endif; ?>
Good luck!
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.