Support

Account

Home Forums Add-ons Repeater Field Nested Repeater fields not working Reply To: Nested Repeater fields not working

  • You cannot do this

    
    $rows = get_field('criteria_details');
    

    loop over this array and then attempt to use get_sub_field() on a nested repeater

    
    if (have_foes('files', $row);
    

    $row in the above case has no meaning to ACF.

    You must either

    1) Use a have_rows() loop for both the parent and child repeaters

    2) Access the sub repeater in the original array $row['files'];