Title: [Plugin: Duplicate Post] Duplicate Attachments
Last modified: August 20, 2016

---

# [Plugin: Duplicate Post] Duplicate Attachments

 *  Resolved [markuszeeh](https://wordpress.org/support/users/markuszeeh/)
 * (@markuszeeh)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-duplicate-post-duplicate-attachments-1/)
 * Hi!
 * The plugin works great! Thanks for your time and work! Any idea how i can duplicate
   all the attachments too?
 * Thanks!
    Markus
 * [http://wordpress.org/extend/plugins/duplicate-post/](http://wordpress.org/extend/plugins/duplicate-post/)

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

 *  Plugin Author [Enrico Battocchi](https://wordpress.org/support/users/lopo/)
 * (@lopo)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-duplicate-post-duplicate-attachments-1/#post-2586857)
 * Hi,
    thank you for your appreciation.
 * What do you mean by “duplicate all the attachments”? Can you tell me what is 
   your usage scenario?
 *  Thread Starter [markuszeeh](https://wordpress.org/support/users/markuszeeh/)
 * (@markuszeeh)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-duplicate-post-duplicate-attachments-1/#post-2586858)
 * Hi lopo!
 * I hav a post with 3 attachments (images). If i duplicate this post, the post_thumb
   is duplicated too, but not the other attachments. I need to upload the 3 images
   again (i have a custom loop to show attachements by post_id) to attache this 
   images to the post and have this 3 images inside the post_gallery.
 * Thanks for your help!
    Markus
 *  Plugin Author [Enrico Battocchi](https://wordpress.org/support/users/lopo/)
 * (@lopo)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-duplicate-post-duplicate-attachments-1/#post-2586867)
 * I see, this makes sense…
    I can’t say how difficult it would be, I’ll see what
   I can do, maybe in a future major version.
 *  Thread Starter [markuszeeh](https://wordpress.org/support/users/markuszeeh/)
 * (@markuszeeh)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-duplicate-post-duplicate-attachments-1/#post-2586908)
 * hi lopo!
 * thanks a lot. There was a post 2 years ago: [http://wordpress.org/support/topic/plugin-duplicate-post-duplicate-attachments](http://wordpress.org/support/topic/plugin-duplicate-post-duplicate-attachments)
 * It doesnt work but maybe it helps.
    Thanks again!
 *  Plugin Author [Enrico Battocchi](https://wordpress.org/support/users/lopo/)
 * (@lopo)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-duplicate-post-duplicate-attachments-1/#post-2586957)
 * I didn’t remember about that thread, I’ll see if I can make that code work… Thanks!
 *  Plugin Author [Enrico Battocchi](https://wordpress.org/support/users/lopo/)
 * (@lopo)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-duplicate-post-duplicate-attachments-1/#post-2587041)
 * Hi,
    version 2.3 (out now) has this feature. Let me know if there are problems.
 *  Thread Starter [markuszeeh](https://wordpress.org/support/users/markuszeeh/)
 * (@markuszeeh)
 * [14 years ago](https://wordpress.org/support/topic/plugin-duplicate-post-duplicate-attachments-1/#post-2587063)
 * Hi lopo!
 * Thanks for the update, your time and work. Looks like it works fine! Thanks! 
   M 🙂
 *  [simon.ker](https://wordpress.org/support/users/simonker/)
 * (@simonker)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-duplicate-post-duplicate-attachments-1/#post-2587082)
 * Hi – thanks for this functionality, it saves a lot of time. I am having a bit
   of a problem with it though…
 * If i duplicate a post and the attachments so that i have two identical posts 
   and then i go to the media library and delete one instance of one of the attachments(
   there are two now due to the duplication) it deletes one instance of the attachment(
   as you would expect) plus the file (which seems to be shared by the two instances)
   leaving the second instance of the attachment, in the media library view, linking
   to a file that no longer exists.. Is there a way to, either not delete the actual
   file, or to delete both instances so that media library reflects the files that
   are in the library?
 * Thanks in advance
 *  [hepdoll](https://wordpress.org/support/users/hepdoll/)
 * (@hepdoll)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-duplicate-post-duplicate-attachments-1/#post-2587093)
 * Hi! I’m having a similar problem as simion.ker.
 * I have unchecked “duplicate attachments” so it shouldn’t duplicate the attachments
   when the post is duplicated, but it is still duplicating the attachments. When
   I delete the second attachment, it deletes the first one as well.
 * How can I set it up so that the attachments aren’t duplicated in the first place?
 * Thanks for your help.
 *  [Samuel Aguilera](https://wordpress.org/support/users/samuelaguilera/)
 * (@samuelaguilera)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-duplicate-post-duplicate-attachments-1/#post-2587094)
 * I think that duplicating attachment is a very **not recommended** thing.
 * Why?. Simply because attachments was created with **only one attachment parent**
   in mind (attachment parent is the post from where you uploaded the attached file).
   Trying to add more than one attachment parent to an attachment seems to me very
   risky and maybe can give you unexpected problems in the future.

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

The topic ‘[Plugin: Duplicate Post] Duplicate Attachments’ 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/)

 * 10 replies
 * 5 participants
 * Last reply from: [Samuel Aguilera](https://wordpress.org/support/users/samuelaguilera/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-duplicate-post-duplicate-attachments-1/#post-2587094)
 * Status: resolved