WordPress.org

Ready to get started?Download WordPress

Forums

Unattach and Re-attach Media Attachments
[resolved] bulk detach with jQuery (6 posts)

  1. James Revillini
    Member
    Posted 2 years ago #

    If you're a geek, you may find this useful. So let's say you want to detach all attachments from a certain page or post. You can run this script in the JS console of any decent browser to detach all who belong to a certain page/post title:

    jQuery("td:contains('Page Title Here') a:contains(Unattach)").each(function(){jQuery.get(this.href)})

    Use with caution. You could accidentally detach all your media items if you do this incorrectly.

    http://wordpress.org/extend/plugins/unattach-and-re-attach-attachments/

  2. FIDImages
    Member
    Posted 1 year ago #

    Hi, simple and useful plugin, anyway a "bulk detach" would be great!

  3. Tevya
    Member
    Posted 1 year ago #

    Yes, it would be nice, if bulk-unattach was built right in. The native WP functionality allows you to check multiple files, then use the attach link on one file to attach all checked files. This does not work using the new Unattach link created by this plugin. Add that feature and it gets a full 5 stars from me (currently I only gave it 4)!

  4. aundc
    Member
    Posted 1 year ago #

    yup, that may be great too! :-)

  5. davidnde
    Member
    Plugin Author

    Posted 1 year ago #

    Hi guys.

    Sorry I didn't reply for a long time. Didn't notice that there is quite a little interest in this plugin and WordPress didn't notify me about these posts :-( But I am very happy this tiny plugin is useful for some people. So I immediately took action :-)
    The bulk feature is a great idea. I implemented both, unattach as well as re-attach as bulk features. Just use them similar as if you would use the build in bulk attach.

    Cheers!
    David

  6. Tevya
    Member
    Posted 1 year ago #

    Wow. Awesome! Thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic