by ShibaShake

Dealing with images in WordPress can be a big pain in the butt.

Management of images and other assets is achieved through the Media Library. There is a link for that to the left of your WordPress dashboard.

You can also get to the media library when you insert images or other media (audio, video) into your posts by using one of the Upload/Insert buttons in the Edit Post screen.

The key issues with native WordPress 2.8 image management

  1. An image can only be attached to a single post. If you want to attach an image to multiple posts and have them appear with the gallery shortcode, then you must download the same image multiple times into the media library and attach each unique instance to a post.
  2. Attaching images to posts is often awkward and time consuming. There is no clear way on how you can select a set of images, and then quickly assign them to posts. This is what we will discuss below.

Note – The process to attach images within the WordPress native library described below is still awkward. To simplify this common task, I just created a simple Media Library plugin which streamlines the process of attaching images, re-attaching images, and removing image attachments.

How to Attach Images to Posts in Bulk (WordPress 2.8)

The easiest way I have found to attach images in bulk to a post is to do the following -

  1. Go to the Media library from your dashboard.
  2. Click on Add New and load in all the images you want. Happily you can easily select and download multiple images here from your local computer. All images loaded in this way they will be unattached.


  3. WordPress Media Library screen-shot - Download multiple images from your local computer.



    WordPress Media Library screen-shot - Upload media page.

  4. Now click on Library. The images you just downloaded should now appear in your WordPress media library.
  5. Click on Unattached, which is one of the options at the top of the media library. This will show you all the images that are currently not attached to posts.


  6. WordPress Media Library screen-shot - List of unattached images

  7. Select all the images you want to group to a given post. Currently, the only way to do image grouping in native WordPress mode is by tying them to posts. Therefore, create a post for each image grouping/category that you want.
  8. There is a drop-down menu at the top that says Bulk Actions. Click on that and select Attach to a Post. Then click on Apply.


  9. WordPress Media Library screen-shot - Selecting images to attach to a post.

  10. You will be presented with a pop-up that lets you search for the page/post you want to attach the images to. Click on the post/page you want to attach the images to and then hit the Select button on the bottom right of the pop-up.


  11. WordPress Media Library screen-shot - Attaching images to a post.

  12. Once WordPress has attached the images, you will be returned to the Media Library, to your list of unattached images. You can continue attaching images in bulk by using the steps above.
  13. You may also want to check that your images have been attached correctly. Click on the Images filter at the top and scroll to the images you just attached. The post you just attached them to should now appear on the Attached-to column.


  14. WordPress Media Library screen-shot - Images are now attached.

  15. After you finish creating all your image groups, you may insert one or more groups into your WordPress posts by using the WordPress gallery shortcode -

There are other useful options associated with the gallery shortcode, so make sure to check out the codex link above.

Once you have attached an image to a post, there is no easy way that I know of to re-attach it to a different post. What I do now, is just delete them and reload them again using the steps above.

If you want to attach an image to multiple posts then you must load it in multiple times (as of WordPress 2.8).

Why Use the WordPress Native Gallery?

Instead of using the WordPress media library and gallery, you can also use a fully featured image plugin such as the NextGEN plugin.

The advantage of using WordPress native functions is that you can be sure they will have continued support over time. In contrast, many standalone plugins get abandoned over time and may no longer work with new versions of WordPress.

In addition, there will be a larger range of plugins that enhance the native functionality.

For example, you can download a variety of plugins that enhance the native WordPress gallery display including LightBox, ShadowBox, FancyBox, Galleria, and many others.

Plugin to Simplify Image Attachments?

At the writing of this article, I could not find a plugin that simplified the image attachment process. In particular, I want to -

  • Attach the same image to multiple posts.
  • Attach images to Category and Tag objects.
  • Easily detach and re-attach images from posts, categories, and tags.
  • Expand the gallery shortcode to display images from Categories and Tags.

** I have since written a Media Library Plugin for facilitating all of these operations.

Related Articles

<< Previous Next >>

<a href="http://shibashake.com/wordpress-theme/media-library-plugin-1-0" target="_top">Media Library Plugin 1.0</a>

Media Library Plugin 1.0

This plugin tries to simplify some of the image attachment functions in the existing WordPress Media Library. There are several key limitations in the current WordPress (2.8) Media Library including - Awkward to attach groups of images to a post. Difficult to detach images from posts other than through deletion. Difficult to re-attach images to...

<< Previous Next >>

<a href="http://shibashake.com/wordpress-theme/shiba-wordpress-gallery-1-0" target="_top">Shiba Gallery Plugin 1.0</a>

Shiba Gallery Plugin 1.0

[Most recent Shiba Gallery Plugin description.] There are many gorgeous Javascript libraries for rendering a gallery of images, but thus far, I have been unable to find a WordPress Gallery plugin that allows me to easily integrate multiple gallery styles within a single blog. Thus ... the Shiba WordPress Gallery Plugin was born. The Shiba Gallery...

<< Previous Next >>

<a href="http://shibashake.com/wordpress-theme/media-library-plugin-2-0" target="_top">Media Library Plugin 2.0</a>

Media Library Plugin 2.0

[Most recent Media Library Plugin description.] Add Tags to Images The true power of Media Library Plugin 2.0, comes from image tagging. It allows you to tag your WordPress images or attachments with the existing WordPress tag framework. Once tagged, you can group your images into galleries simply by specifying their tag names. In this...

<Playback Stop Play >

RSS feed for comments on this post. TrackBack URL

Leave a Reply

search button search button
rss