This plugin does it:
http://shibashake.com/wordpress-theme/media-library-plus-plugin
It allows you to attach and detach single attachments or in bulk to posts, pages, custom posts, and galleries.
I don’t know why it is not in the plugin directory, but I use it and have had no problem with it.
Thread Starter
TOTM
(@totm)
@spacechannel – Theres a few things I would recommend improve with the plugin but mostly trivial.
You’re correct, though, the author and his theme/plugins are not registered in the directory here.
I’ve tested that plugin with 3.0.1 and it’s exactly the functionality that I was looking for.
Thank you.
You are welcome. I agree some improvement could be made. Best to go over to shiba’s site to suggest them.
If you are looking to temporarily disable an attachment on a post or page, without deleting it or even “un-attaching” it, WordPress does actually support the post_status of “private” internally… although there is no user interface to set it.
I wrote a tiny plugin which simply adds a check-box called “Attachment enabled” that sets the post_status to either “inherit” (the normal state) or “private”.
A “private” attachment will not be displayed by the [gallery]
shortcode, nor by the AutoNav plugin; but WordPress does not (yet) prevent it from being viewed with a URL like http://www.example.com/?p=57
nor does it prevent you from downloading the actual attachment file directly.
I hope this feature is moved into the WordPress core sometime, along with the ability for attachments to be “future postings,” to have tags, taxonomies, and so on.