How can I attach images to a post from the media library?

Currently, there is no way to do this in a vanilla WordPress install. Is there a way to retroactively attach an image from the Library to a post?

EDIT: Ah, let me clarify — when editing a post, and clicking the “Insert Media” button, I see no way to add past media. I can insert it into the post, but not add it to the post gallery.

3 Answers
3

This is not something that is currently supported in WordPress. There’s some discussion about it here: http://core.trac.wordpress.org/ticket/6820

One plugin which does enable this functionality is:

WordPress “File gallery” plugin

This plugin does a few extra things, but one option it provides is that after clicking “upload/insert” and going to the media library tab, you can tick check boxes beside images and choose to attach them to the current post.

There’s also an old thread on WordPress support forums which pertains to adding a small bit of code to your functions.php file to enable this functionality but I think that only works within the Media Library section, not when in the Upload/Insert thickbox, so the above plugin might be your best bet.

http://wordpress.org/support/topic/detach-amp-re-attach-media-attachment-images-from-posts?replies=21

Leave a Comment