Support » Fixing WordPress » WP 2.9 Native post thumbnails and post images not showing

  • Resolved jonimueller


    I just recently redesigned my site and originally (on the development server) I was using a plugin called Post Thumbs Revisited. It works beautifully there, as you can see:

    When I moved everything to the live site, and also migrated all the images in the /uploads folder, no images appeared. The paths are correct, I can SEE the images via FTP, but if you try to click on them, WP says “Sorry, no posts matched your criteria.”

    So I removed Post Thumbs Revisited and turned on WP 2.9’s native post thumbnail support by following this advice:

    1. Adding this to my functions.php file:

        add_theme_support( 'post-thumbnails' );

    2. Adding this call in my template where I want the thumbs to appear:

    <?php the_post_thumbnail(); ?>

    Still, no images appear anywhere. Yet they are present on the server.

    Any thoughts? I’d like to get this blog portion of my site back up and running. I’m using the standard .htaccess file; the .htaccess files are identical at and, so that can’t be the issue I don’t think.


Viewing 14 replies - 1 through 14 (of 14 total)
  • did you edit you wp-settings file as described here : ?

    I checked my wp-settings.php file and that code is already there on lines 720-21. Thanks for checking tho. 🙂

    Oh, what’s more, if I view my Media, they all have broken links. Does this help anyone?

    I’ve gone over my settings thoroughly (don’t think I’ve missed anything there) and cannot figure out why it’s doing this on the live site.

    In other words, this entire path seems “blocked” — for lack of a better word —

    Further to this, if I try to upload a new, fresh file, it too is broken and won’t display. I tried switching the path/URL to (because those images on that server appear fine), and it does the same thing. What is causing ths blockage?



    Forum Moderator

    I checked my wp-settings.php file

    Uh? You need to add:

    if ( function_exists( 'add_theme_support' ) ) add_theme_support( 'post-thumbnails' );

    to your theme’s functions.php file. You don’t need to touch wp-settings.php. It’s a core file and shouldn’t be edited unless you really, really, know what you’re doing.

    I knew that, but I wanted to check to be sure it was in the wp-settings.php file, and indeed it is. I already added the code you supplied, ESMI, to my functions.php file as explained in my original post. And added the template code as well.

    “I checked my wp-settings.php file and that code is already there on lines 720-21. Thanks for checking tho….” (emphasis added).

    I don’t know if this is significant or not, but listing the files in the media gallery causes broken images as well, even freshly added ones. I am at a loss. And it’s not just posts, but images on pages that are behaving this way (check out




    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-related problems?

    resetting the plugins folder by FTP or phpMyAdmin? Sometimes, an apparently inactive plugin can still cause problems.

    – re-uploading the wp-admin and wp-includes folders from a fresh download of WordPress?

    I just came back here to tell you that I did disable all plugins and that didn’t help.

    I also deleted the entire /uploads folder at, grabbed the /uploads folder from, zipped it, uploaded it to, decompressed it and now I can SEE all the images in the media gallery, but they still do not appear on the individual posts or pages. (Settings on the /uploads folder and all subfolders is 755, BTW.) I also made sure the /cache folder was empty before and after the move. 😉

    Let me try your suggestions #2-4 and see if that helps. Thanks!

    None of the suggestions 2-4 above made a difference. After I zipped the /uploads folder from and moved it to, all the media appeared in the media listing. I had to manually reupload our headshots on the /about-us page so I at least have those going. It may very well be that I need to reupload each and every photo. That won’t be pleasant.



    Forum Moderator

    I’m seeing post images on They look like standard image inserts rather than post thumbnails. Have you re-uploaded & re-inserted them in the last hour or so?

    Esmi, on the about-us page, I just manually uploaded images. That’s a static page anyway so that won’t matter. Seems like things are working (when things mysteriously start and stop working, and vice versa, I tend to blame my web host!).


    How we can choose the size of miniatures with this code?
    Thank You

    eureka !!!

    <?php the_post_thumbnail(‘medium’); ?>

    <?php the_post_thumbnail(array( 200,200 ), array( ‘class’ => ‘alignleft’ )); ?>

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘WP 2.9 Native post thumbnails and post images not showing’ is closed to new replies.