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.

In WordPress 3.5, media management has changed entirely. Also, relating attachments to specific posts is (I believe) basically only being done for backward compatibility. Therefore, after uploading attachments from within the media modal to a post of any post type, it establishes a relationship where the post ID is the parent of the attachment ID, like it's been for a long time.

However, once an attachment is uploaded to a post, there is no place to manage attachments that have a relationship to the post from within the media modal on the post.

After I upload the images, I can immediately select and insert them, but because the media gets dumped into the site-wide media section, I can no longer manage attachments to a specific post like in < 3.5 as seen here:

enter image description here

This creates the following issue:

Managing relationships of attachments to specific posts is impossible without completely deleting the media and re-uploading. That alone is not different from before. However, now that media is dumped into the same tab as all other media, and there's not a tab to manage media w/ a relationship to a specific post, it becomes incredibly difficult to even find the media attached to a specific post down the road.

Because you could attach media to a post, and then down the road, after many attachments have been uploaded to other posts, you want to go back to an old post (think a slider or product) and change out the attached media. Good luck finding your media, because the media tab in the new editor does not order all media first by those attachments with a relationship to the current post. Here's the example pic:

enter image description here

Not so bad here, because it's only one or two posts separated. But imagine going back months later. It's impossible to find the related attachments for that post.

There are many, many plugins, and custom page templates out there that utilize the relationship between a post and it's related attachments. So removing those relationships is going to be very, very hard in the future.

I assume the answer is to create another tab on the left for the media attached to a particular post. Or to make the orderby for the media tab start with attachments that are related to the current post. That's a short term fix.

Long term, other ways to relate media to a post need to be created by these plugin and theme developers. I assume there are available hooks to create new tabs, and to add meta data to the attachment and post to create the relationship.

Am I right in my concern? Ideas to fix?

share|improve this question
add comment

1 Answer

up vote 12 down vote accepted

I was part of the panic show. Happy to say that we can stop the panic, there is a way to view this by choosing "Uploaded to this post" option in dropdown in Media Library:

enter image description here

(props to Michael Fields)

share|improve this answer
1  
Unfortunately, it seems there's no way of having this as the default view... –  brasofilo Dec 14 '12 at 0:52
    
Yep. silly me. A lot of concern without much merit : ) –  Brian Krogsgard Dec 14 '12 at 5:43
    
In wordpress.stackexchange.com/a/76213/73 you can find a plugin to pre-select the post specific page. –  toscho Dec 15 '12 at 14:59
    
Oughtn't this be the default? –  ZaMoose Dec 15 '12 at 20:19
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.