Title: Is it possible to insert duplicate post into wp_insert_post function?
Last modified: May 6, 2020

---

# Is it possible to insert duplicate post into wp_insert_post function?

 *  Resolved Anonymous User 14123315
 * (@anonymized-14123315)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/is-it-possible-to-insert-duplicate-post-into-wp_insert_post-function/)
 * As the title says, is it possible to take a duplicate page and insert the meta
   data into wp_insert_post()?
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Priscilla Chapman](https://wordpress.org/support/users/priscillamc/)
 * (@priscillamc)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/is-it-possible-to-insert-duplicate-post-into-wp_insert_post-function/#post-13198675)
 * Hi @blingblingbling,
 * We’re sorry for the delay getting back to you. Duplicate post provides the `duplicate_post_create_duplicate`
   function, which creates a duplicate of any post object. You can find more information
   about how to use it in the [Yoast Duplicate Post developer documentation](https://developer.yoast.com/duplicate-post/functions-template-tags).
 * If there is post meta data that you’d like to add that hasn’t been copied to 
   the new post, you may have to manually copy the fields. You can check out the
   other Duplicate Post functions in the documentation or use WordPress functions
   like `get_post_meta` and `add_post_meta`, for example.
 * Let us know if you have any other questions.
 *  [Priscilla Chapman](https://wordpress.org/support/users/priscillamc/)
 * (@priscillamc)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/is-it-possible-to-insert-duplicate-post-into-wp_insert_post-function/#post-13277933)
 * Hi @blingblingbling,
 * We’re marking this issue as resolved due to inactivity. You’re welcome to create
   a new issue if you need further assistance.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Is it possible to insert duplicate post into wp_insert_post function?’
is closed to new replies.

 * ![](https://ps.w.org/duplicate-post/assets/icon-256x256.png?rev=2336666)
 * [Yoast Duplicate Post](https://wordpress.org/plugins/duplicate-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicate-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicate-post/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicate-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicate-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicate-post/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Priscilla Chapman](https://wordpress.org/support/users/priscillamc/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/is-it-possible-to-insert-duplicate-post-into-wp_insert_post-function/#post-13277933)
 * Status: resolved