Hi, guys. I’m new to ACF and was confronted with a problem when I created a flexible content field for a post and I tried to copy the content of the post into a new post. I used wp_insert_post() to create a new post, and wasn’t sure how to effectively copy the flexible content of the old post into the new one, especially when the the old post has several rows (please see the attachment). What functions should I use to achieve this goal? Thank you~
I generally use this plugin on all sites to allow copying posts https://wordpress.org/plugins/duplicate-page/