[resolved] Media library seems empty although showing image count (6 posts)

  1. Blutarsky
    Posted 6 years ago #

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

  2. esmi
    Forum Moderator
    Posted 6 years ago #

    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?

  3. Blutarsky
    Posted 6 years ago #

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

  4. koorb
    Posted 5 years ago #

    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!

  5. koorb
    Posted 5 years ago #

    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.


  6. keesiemeijer
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic