I know this has been asked before: Add file name column to media library I tried the code. The Filename column was not polpulated. Then I followed
Instead of
substr( strrchr( $meta['file'], '/' ), 1)
we can usebasename( $meta['file'] )
. The result is the same, but the code becomes more readable,
Then the Filename column got populated but now the sort order is all over the place. Definitely not sorted.
Any pointers on how to fix this are very much appreciated.
Thanks! cmyk