Support

Account

Home Forums Add-ons Repeater Field Output only first item in repeater field Reply To: Output only first item in repeater field

  • here’s the code I’m using:

    <?php if( have_rows('news_slideshow') ): ?>
       <?php while ( have_rows('news_slideshow') ) : the_row(); ?>
    	<?php the_row();  ?>
    	<div>
    		<img src="<?php the_sub_field('news_slideshow_image'); ?>" alt="">
    	</div>
    	<?php break;  ?>
       <?php endwhile; ?>
    <?php endif; ?>