WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WP 2.9 Native post thumbnails and post images not showing (15 posts)

  1. Joni
    Member
    Posted 4 years ago #

    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!

  2. curlybracket
    Member
    Posted 4 years ago #

    did you edit you wp-settings file as described here : http://wpengineer.com/wordpress-2-9-add_theme_support-and-has_post_image/ ?

  3. Joni
    Member
    Posted 4 years ago #

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

  4. Joni
    Member
    Posted 4 years ago #

    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

  5. Joni
    Member
    Posted 4 years ago #

    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?

  6. esmi
    Forum Moderator
    Posted 4 years ago #

    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.

  7. Joni
    Member
    Posted 4 years ago #

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

    :(((

  8. esmi
    Forum Moderator
    Posted 4 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-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?

  9. Joni
    Member
    Posted 4 years ago #

    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!

  10. Joni
    Member
    Posted 4 years ago #

    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.

  11. esmi
    Forum Moderator
    Posted 4 years ago #

    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?

  12. Joni
    Member
    Posted 4 years ago #

    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!

  13. lupi73
    Member
    Posted 4 years ago #

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

  14. lupi73
    Member
    Posted 4 years ago #

    eureka !!!

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

  15. lupi73
    Member
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic