Support

Account

Home Forums Add-ons Repeater Field Repeater rows don't save new files Reply To: Repeater rows don't save new files

  • Hi @twistysnacks

    Can you please perform some debugging to find the issue?

    First save a file (I am to assume this works correctly for the first row)

    Now edit your code to print the variable before saving like so:

    
    $field_key = "documents";
    
    $value = get_field($field_key, $post_ID);
    
    echo '<pre>';
    	print_r(value);
    echo '</pre>';
    die;
    

    What is the $value?

    I think the issue may be fixed by changing $field_key to actually use the field key, not the field name