Support

Account

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!