Support » Fixing WordPress » Problem With Thumbnails

  • Resolved Darin Kotter


    I am running an installation of WordPress that I use just mainly as a CMS. I use it to make posts, and then I pull those posts onto my site. Everything is working in that regard, but I recently was asked to change how one part was formatted, and I’m having issues pulling a thumbnail and getting it to display correctly.

    I set up a featured image with each post, and then use the_post_thumbnail() to pull that image out. I have in my functions.php file this code, set_post_thumbnail_size( 350, 150 ); This is supposed to crop the images to roughly that size. The problem is it crops the first image correctly, but the other two are way to short. This can be seen here:

    I have messed with it and can’t figure out why the set_post_thumbnail_size() isn’t working. I had it working locally, after redoing all my posts, but I tried that on this one and it didn’t solve the problem.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator keesiemeijer


    review post thumbnails
    maybe it is better to set the thumb tumbnail size like this:

    if ( function_exists( 'add_theme_support' ) ) {
    	add_theme_support( 'post-thumbnails' );
            set_post_thumbnail_size( 350, 150  );

    try also set_post_thumbnail_size( 350, 150, true );

    I’ve looked over all the documentation I can find and have everything set up like the examples show. I’ve tried putting in true, I’ve tried putting in false, I’ve tried leaving it blank. I get the same results. If I change the first #, which controls width, the image will change. If I change the second #, which controls height, nothing happens, not even if I set it up to 9999.

    Moderator keesiemeijer


    It looks now that you made it work or is there still a problem?

    Yeah I just fixed it, at least for now. I had to not only redo all the posts, but delete the images and re upload them as well.

    Moderator keesiemeijer


    Maybe, I am not sure, but if you use the new version of wordpress version 3.0.5 it will work for old uploaded post thumbnails.

    Moderator keesiemeijer


    sorry I see you use it already.

    I was using 3.0.5, but I think I updated after I tried implementing this so maybe that was the issue. On another note, I’m having issues with the posts linking to the right place. If you click on the image, it takes you to the home page. I’m assuming this is a permalink issue that I’ll mess with later.

    The biggest issue is that when you click on the title, it is supposed to take you to a page where you can see a bigger image and read the full post contents, as well as leave comments. But it just takes you to a page that has the thumbnail and title. The only difference is it does give you the comments page.

    So I haven’t had much time to look into it as I’ve been trying to fix this other issue first but I really don’t know why it would do this. Again, maybe it’s a permalink issue as well?

    Maybe I should start another thread though for this…

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Problem With Thumbnails’ is closed to new replies.