Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media Library no longer allows the ability to view images attached to post #12753

Closed
jamesmrobinson opened this issue Dec 10, 2018 · 28 comments · Fixed by #65965
Closed

Media Library no longer allows the ability to view images attached to post #12753

jamesmrobinson opened this issue Dec 10, 2018 · 28 comments · Fixed by #65965
Assignees
Labels
[Block] Image Affects the Image Block [Feature] Media Anything that impacts the experience of managing media [Type] Enhancement A suggestion for improvement.

Comments

@jamesmrobinson
Copy link

When viewing the media library from the classic editor there is the ability to filter results by media type as well as view images attached to a post, unattached, or belonging to the user.

With Gutenberg this is lost and it seems you can only filter by date.

Installing the classic editor plugin restores the Media Library modal view along with the additional filter.

The desired solution would be to restore these filters in Gutenberg.

@swissspidy swissspidy added the [Feature] Media Anything that impacts the experience of managing media label Dec 10, 2018
@cagivacode
Copy link

I just found this as well......I have thousands of images and trying to find the right one for featured image (old posts did not use them) is a nightmare without this filter

@tiagogon
Copy link

+1

@kylemcph
Copy link

Also a report of this from 11543319-hc

@finalwebsites
Copy link

finalwebsites commented Apr 3, 2019

Same here for a custom post type. With Gutenberg installed I can see the linked posts only via the media library.
It would be great to have a "Add Media" button, without the need to add a media block first.

@Wadowad
Copy link

Wadowad commented Apr 12, 2019

+1 How open media library and select old attachments to current post? How delete images attached to post?

@yoanmarchal
Copy link

since à long time i use media attachments in order to do "custom slider" but with gutenberg i have no idea how to do that anymore

@RoqueCampos
Copy link

I'm having the same issue because of that +1

@venture89
Copy link

Yes, this is a pain to go through so many images to find the ones that are uploaded to the images. Usually, writers upload images and editor's need to find them to set them as featured images...etc. Please fix this bug.

@venture89
Copy link

Installing the classic editor plugin restores the Media Library modal view along with the additional filter.

This is no longer a valid solution. Even having the classic editor plugin does not allow you to filter media by 'attached to' post.

@Drivingralle
Copy link

+1 to get this back

@tiagogon
Copy link

+1+1+1

@spncr
Copy link

spncr commented Nov 20, 2019

Worth noting here that some work would need to be done to ensure Gutenberg added images are properly seen as attached.

Right now, you can have an image in a Gutenberg post or page but the status in WP Admin > Media will still show unattached.

@simonPaulBergzeit
Copy link

+1

@Ezokia
Copy link

Ezokia commented Feb 19, 2020

+1 !!

@johnbillion
Copy link
Member

Note: This feature is present for the Featured Image control, but not when inserting media using one of the media block types.

@fylgjur
Copy link

fylgjur commented Jun 1, 2020

User requesting this feature to return in 3021542-hc

@tiagogon
Copy link

tiagogon commented Jun 1, 2020

Great news, @fylgjur :) these feature will be critical for some of the WP installations I have.

Do you know in which version of WordPress will the fix be?

@torounit
Copy link
Member

torounit commented Jul 3, 2020

In case of Gallery Block or FeaturedImage , Filter is displayed.

Occurs only in Image Block.

@paaljoachim
Copy link
Contributor

Hi @nosquirrelbones James and others could we get a status update on this issue?
Thanks!

@Soean
Copy link
Member

Soean commented Feb 10, 2021

I can reproduce this issue with Gutenberg 9.9.1

@tiagogon
Copy link

+1

Two years after the launch of a new editor's interface, Wordpress still didn't ensure feature paring with the old version: forcing 5 million installations still using the old editor with a plugin. Why?

@Soean
Copy link
Member

Soean commented Feb 10, 2021

Two years after the launch of a new editor's interface, Wordpress still didn't ensure feature paring with the old version: forcing 5 million installations still using the old editor with a plugin. Why?

@tiagogon Fortunately WordPress is an open source project. You are welcome to contribute to it. So that we can reach this goal soon. Thanks!

@paaljoachim
Copy link
Contributor

Could we get an update with screenshots comparing the two versions?
That is a quicker way to get an overview. Thank you!

@Soean
Copy link
Member

Soean commented Feb 10, 2021

Insert block -> click on "Media library" in the placeholder.

Image, just the date filter
Bildschirmfoto 2021-02-10 um 14 35 42

Gallery, additional filter for attached images
Bildschirmfoto 2021-02-10 um 14 36 02

@paaljoachim paaljoachim added the [Type] Enhancement A suggestion for improvement. label Feb 11, 2021
@sbathompson-he
Copy link

sbathompson-he commented Mar 24, 2021

Helped a client recently who offered a work-around:

Directly Quoted

Steps:

  1. find unattached media and copy the name
  2. click "attach" and paste in the media name in the search
  3. it will show you the writings it is embedded in regardless of whether it is a post or page

if not found it really is unattached

@dnnsjsk
Copy link

dnnsjsk commented Jun 23, 2021

For anyone looking for a solution for this, check my other comment out:
#19851 (comment)

@andrewserong
Copy link
Contributor

I've opened a tentative PR that exposes the additional media library filters when using the media library with the image block. Ready for review / feedback over in #65965

That PR only exposes the filters for now, it doesn't address one of the issues mentioned earlier in the discussion here (#12753 (comment)):

Worth noting here that some work would need to be done to ensure Gutenberg added images are properly seen as attached.
Right now, you can have an image in a Gutenberg post or page but the status in WP Admin > Media will still show unattached.

So, separately to that PR, it'd be good to investigate the desired behaviour for attaching images to a post in Gutenberg. I.e. just one idea — when we add an image to a post, if it isn't already attached to the post then update the image to be attached to the current post id. If it's already attached, then don't switch the attachment. Curious to hear if anyone had other ideas about how that part of things should work!

@andrewserong
Copy link
Contributor

Update: I've merged in #65965 which exposes the filters within the media library in the block editor.

For the problem of images that already exist in the media library and are then added to a post or page, but do not become "attached" to that post, I've opened a separate issue over in #66663 where the discussion can continue.

Currently in Gutenberg, if you upload directly to the post (i.e. drag an image onto the Image block), then it becomes attached to the post. However this does not happen if a user selects the image from the media library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Image Affects the Image Block [Feature] Media Anything that impacts the experience of managing media [Type] Enhancement A suggestion for improvement.
Projects
None yet