WordPress.org

Ready to get started?Download WordPress

Forums

Duplicate Post
[resolved] Duplicate Attachments (11 posts)

  1. markus.zeeh
    Member
    Posted 2 years ago #

    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/

  2. lopo
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,
    thank you for your appreciation.

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

  3. markus.zeeh
    Member
    Posted 2 years ago #

    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

  4. lopo
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  5. markus.zeeh
    Member
    Posted 2 years ago #

    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!

  6. lopo
    Member
    Plugin Author

    Posted 2 years ago #

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

  7. lopo
    Member
    Plugin Author

    Posted 2 years ago #

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

  8. markus.zeeh
    Member
    Posted 2 years ago #

    Hi lopo!

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

  9. simon.ker
    Member
    Posted 1 year ago #

    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

  10. hepdoll
    Member
    Posted 1 year ago #

    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.

  11. Samuel Aguilera
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic