WordPress Advanced Custom Fields (ACF) Repeater Field usage

Last updated on

This example shows how to loop through and display data with the have_rows, the_row and the_sub_field functions

// check if the repeater field has rows of data
if( have_rows('repeater_field_name') ):

 	// loop through the rows of data
    while ( have_rows('repeater_field_name') ) : the_row();

        // display a sub field value


else :

    // no rows found


Let me know if this helped. Follow me on Twitter, Facebook and YouTube, or 🍊 buy me a smoothie.

Leave a reply

Your email address will not be published. Required fields are marked *