WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Duplicate Post] Duplicate Attachments

[Resolved] [Plugin: Duplicate Post] Duplicate Attachments

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Lopo
    Participant

    @lopo

    Hi,
    thank you for your appreciation.

    What do you mean by “duplicate all the attachments”? Can you tell me what is your usage scenario?

    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 Lopo
    Participant

    @lopo

    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.

    hi lopo!

    thanks a lot. There was a post 2 years ago: http://wordpress.org/support/topic/plugin-duplicate-post-duplicate-attachments

    It doesnt work but maybe it helps.
    Thanks again!

    Plugin Author Lopo
    Participant

    @lopo

    I didn’t remember about that thread, I’ll see if I can make that code work… Thanks!

    Plugin Author Lopo
    Participant

    @lopo

    Hi,
    version 2.3 (out now) has this feature.
    Let me know if there are problems.

    Hi lopo!

    Thanks for the update, your time and work. Looks like it works fine! Thanks! M 🙂

    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

    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
    Participant

    @samuelaguilera

    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 ‘[Resolved] [Plugin: Duplicate Post] Duplicate Attachments’ is closed to new replies.