I’ve migrated hosts for a WordPress site, and a lot of my images have the same title.
I am trying to pinpoint one media file by the file name, but file name is not a column listed in Media Library.
I don’t want to have to wade through dozens of images with the same title trying to find the problem file name, so I can find the correct URL to this image.
How can I add file name to the list of columns in Media Library?
I can’t search the media library by file name either.
Here you go, this code not only lists all filenames in Library but also allows you to sort them by name:
The code above for sorting with Filename works, if you change 2 things.
I’m not sure if this answers the question directly but I was trying to get a “URL” column on the Media Library page (to avoid clicking the edit link every time…) and found this code snippet which does exactly that.
I played with it a little to get it to sort the URLs alphabetically and to strip the domain, to improve my workflow a bit more. Check it out:
I should mention it also presents the URL in an
<input>
that automatically selects the text when clicked, a nice feature for a quick copy and paste.