Home › Forums › General Issues › Clone a document and transfer ACF data › Reply To: Clone a document and transfer ACF data
That doesn’t seem to work. If I dump the $value variable before the line
upate_post_meta($inserted_post_id, $key, $value);
It’s the key of the field, not the field structure/array. But if I try to pass the $field as the last argument of update_post_meta()
, it doesn’t work.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.