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

  1. James Revillini
    Posted 4 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.


  2. FIDImages
    Posted 3 years ago #

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

  3. Tevya
    Posted 3 years 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
    Posted 3 years ago #

    yup, that may be great too! :-)

  5. davidnde
    Plugin Author

    Posted 3 years 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.


  6. Tevya
    Posted 3 years ago #

    Wow. Awesome! Thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Unattach and Re-attach Media Attachments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic