Support » Fixing WordPress » Media library seems empty although showing image count

  • Resolved Blutarsky


    As the subject states: media library shows some 90 images count, but shows nothing. What can I try?

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi


    Forum Moderator

    Have you tried:

    – deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems?

    – checking the uploads path in Settings/Media?

    Shame on me, it is my functions.php that is filtering something badly!

    What did you have wrong? Mine seems to be doing the same, when I change the theme it works. I can’t see whats wrong in my functions file!

    Ah I got it. I had add_theme_support( 'post-thumbnails' ); inside a function that was a callback for add_action('init', ...). Moved to the top of the functions file (i.e. outside that function) and all is well.


    Moderator keesiemeijer



    Thank you koorb! I had the same problem. At first I thought it was a problem with a plugin. But when I knew what to search for I found the add_action('init', ...) was the problem. I use it to call a function to register a custom taxonomy. If I remove the function and the action I can use the library again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Media library seems empty although showing image count’ is closed to new replies.