Support

Account

Home Forums General Issues Clone a document and transfer ACF data Reply To: Clone a document and transfer ACF data

  • Not really. Most of my ACF data for that site was in a single field. I added code to copy that field specifically, like:

    
    $layout = get_field_object('content_rows', $post_id);
    ...
    update_field('content_rows', $layout['value'], $inserted_post_id);