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 a helping hand in fixing your website issues?

If you are facing any problems in implementing these code snippets and tutorials, you can hire us to fix your website issues.

Hire Us