Home › Forums › Front-end Issues › Reassign random Post ID with actual Post ID for new post › Reply To: Reassign random Post ID with actual Post ID for new post
Okay, I see that _edit_lock value is “timestamp:1”, so managed to add required metaposts. Instead of using
'post_id' => 'new'
I used time() to assign the timestamp value
'post_id' => $timestamp
then replaced the attachment post_parent containing that timestamp value with the new Post ID later and it worked like a charm.
Thank you once again for your great plugin and support!
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.