WordPress   

Get data from ACF repeater field in WordPress

<?php 
if( have_rows('repeater_field_name') ): 
	while( have_rows('repeater_field_name') ) : the_row();
	
		if (get_sub_field( 'repeater_sub_field_1_name')):
			echo the_sub_field('repeater_sub_field_1_name'); 
		endif
		
		if (get_sub_field( 'repeater_sub_field_2_name')):
			echo the_sub_field('repeater_sub_field_2_name'); 
		endif

	endwhile;
endif; 
?>
Need Professional Support for Your Website Problems?

Whether you're facing website issues or struggling with code implementation, our team is here to assist. Hire us to get your website back on track.

Hire Us