WordPress   

Get repeater field values inside a group field in ACF WordPress

<?php
while ( have_rows( 'group_field_name' ) ) : the_row();
	while ( have_rows( 'repeater_field_name' ) ) : the_row();
	
		if (get_sub_field( 'repeater_subfield_1_name')):
			the_sub_field( 'repeater_subfield_1_name' );
		endif 
		
		if (get_sub_field( 'repeater_subfield_2_name')): 
			the_sub_field( 'repeater_subfield_2_name' ); 
		endif 
		
		if (get_sub_field( 'repeater_subfield_3_name')): 
			the_sub_field( 'repeater_subfield_3_name' ); 
		endif 
		
	endwhile;
endwhile;
?>
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