get the row number of loop in advance custom repeater code example Example: acf get row index echo get_row_index();