Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using the "attach" feature in the media library to link a set of images to specific pages. Our custom theme displays these attached images in a particular way. alt text

We are setting up Wordpress as a CMS for a client and we don't want them to have to attach images to posts / pages this way because it feels clunky to be editing page, then forcing the user to go to the media section and attach images to that page one by one.

I would really like our client to be able to attach a set of images to a post or page in a manner similar to the "featured image" feature. The user should also be able to add, remove and sort the images without leaving the page. alt text

share|improve this question
    
Is this helpful? wordpress.stackexchange.com/questions/639/… –  hakre Oct 14 '10 at 21:20
add comment

2 Answers

up vote 3 down vote accepted

Actually, it's very easy to attach images to posts and pages from directly within the editor. Just click on the Add an Image button (immediately to the right of Upload/Insert) to access the uploader.

You can upload as many images as you want to the media gallery for that page and edit the meta information attributed to each. Then click "Save Changes" at the bottom to save the images.

As far as WordPress is concerned, these images will be "attached" to the post or page on which you added them ... no need to go to the Media Gallery to do an upload. They'll only show up on the post or page if you click "Insert into Post" after you upload.

Update

For those of you who haven't used this before ... You can access the uploader through these icons:

Upload/Insert Button Toolbar

The uploader itself will appear on the same page - you don't have to go anywhere else to use the feature.

Screenshot of the media gallery

You can upload multiple images at once. Either click "Select Files" and select them one at a time, or select a bunch (click-and-drag) and they'll all upload at the same time.

Upload multiple images at once

Once the images are uploaded, you can manage them inside the post or page's internal gallery. You can re-tag images, change the details attributed to each, and drag them around to re-order things.

Post media gallery

share|improve this answer
    
I didn't know that this sort of functionality is built into Wordpress. Thanks for the explanation. However it doesn't really achieve what I was hoping to. I have posted an answer (to my own) question which describes a plugin that does exactly what I was looking for. –  jessegavin Oct 14 '10 at 21:05
    
Actually, the functionality I was describing is exactly the functionality that plug-in claims to provide. The difference is, the core functionality places attachments in the posts table like it should rather than in an external one specific to a different system ... –  EAMann Oct 14 '10 at 21:19
    
The benefit that the plugin provides is the visual interface. It allows you to sort by drag and drop and allows you to add, remove attachments very easily. –  jessegavin Oct 14 '10 at 21:34
    
Please see my update. The built-in gallery uses the same interface as the plug-in and also allows you to sort by drag and drop. Please also take a few minutes to experiment with the built-in gallery to see how it works. –  EAMann Oct 14 '10 at 21:54
    
I have accepted your answer, however, I still prefer the interface provided by the "attachments" plugin because it gives you a list of thumbnails on the edit page itself (not in an overlay). –  jessegavin Dec 8 '10 at 15:50
show 1 more comment

I hate to answer my own question, but I randomly stumbled across this Wordpress plugin in a totally unrelated search today. It does exactly what I have been looking for.

http://wordpress.org/extend/plugins/attachments/

UPDATE

Turns out that this plugin doesn't use the native attachment features in Wordpress and creates a separate table that is plugin specific. For me that isn't a problem, I just thought I would pass along the info.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.