Support

Account

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!