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

  • Resolved Joni

    (@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: http://pixelita.mytestbed.com/blog

    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:

    if(function_exists('add_theme_support')){
        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.
    http://www.pixelita.com/blog

    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 pixelita.com and pixelita.mytestbed.com, so that can’t be the issue I don’t think.

    Thanks!

Viewing 14 replies - 1 through 14 (of 14 total)
  • did you edit you wp-settings file as described here : http://wpengineer.com/wordpress-2-9-add_theme_support-and-has_post_image/ ?

    Joni

    (@jonimueller)

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

    Joni

    (@jonimueller)

    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 — http://www.pixelita.com/wp-content/uploads

    Joni

    (@jonimueller)

    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 mytestbed.com (because those images on that server appear fine), and it does the same thing. What is causing ths blockage?

    esmi

    (@esmi)

    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.

    Joni

    (@jonimueller)

    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 http://pixelita.com/about-us).

    :(((

    esmi

    (@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-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?

    Joni

    (@jonimueller)

    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 pixelita.com, grabbed the /uploads folder from mytestbed.com, zipped it, uploaded it to pixelita.com, 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!

    Joni

    (@jonimueller)

    None of the suggestions 2-4 above made a difference. After I zipped the /uploads folder from mytestbed.com and moved it to pixelita.com, 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.

    esmi

    (@esmi)

    Forum Moderator

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

    Joni

    (@jonimueller)

    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!).

    Thanks!

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

    eureka !!!

    <?php the_post_thumbnail(‘medium’); ?>
    http://www.kremalicious.com/2009/12/wordpress-post-thumbnails/

    <?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.