• After updating site to 3.0.2 the post thumbnails no longer show.
    I checked the funtions.php and they are enabled there.
    I checked the loop.php and have the following beginning on line 183:

    <div class="entry-content">
    // The Post Thumbnail function is active by default, but this line of php will make it display.
    
    <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail(array(200,160), array("class" => "alignleft post_thumbnail")); } ?>
    
    //Post Thumbnail Ends
    
     <?php the_content( __( 'Continue reading <span>→</span>', 'twentyten' ) ); ?>
     <?php wp_link_pages( array( 'before' => '<div>' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
     </div>

    This worked prior to the upgrade/update but now does not. Please help.
    The site is http://www.frontporchmusic.net/
    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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 Twenty Ten theme to rule out any theme-specific problems?

    Thread Starter rinelson

    (@rinelson)

    Thanks for the reply esmi. I am already running the Twenty Ten theme and the post thumbnails were working fine until I did the upgrade to 3.0.2. Any reason why it a plugin would not cause any problems before the upgrade but then does after?

    I’ll give the plugin test a try and see, just can’t see why that would be it.

    Thanks again and I’ll update as soon as I try

    Thread Starter rinelson

    (@rinelson)

    deactivated all plugins, problem persists. activated them one at a time just to see. no change.

    Please help.

    do you really need the conditional around your post thumbnail code?

    <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail(array(200,160), array("class" => "alignleft post_thumbnail")); } ?>

    what happens if you use:
    <?php the_post_thumbnail(array(200,160), array("class" => "alignleft post_thumbnail")); ?>

    Thread Starter rinelson

    (@rinelson)

    I had tried that already but I went ahead and tried again. No avail. I’m really baffled because it worked just fine prior to the upgrade to 3.0.2. I’ve contemplated going back to 3.0.1 but didn’t want to because 3.0.2 is suppose to be a security patch (upgrade).

    Thanks to those of you who have taken the time to help. Any other ideas?
    Best, Rich

    Thread Starter rinelson

    (@rinelson)

    Fixed it. Had the thumbnails function in the wrong place in the loop.php file. Here’s where it should be:

    <div class="entry-meta">
    	<?php twentyten_posted_on(); ?>
    </div><!-- .entry-meta -->
    	<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
    <div class="entry-summary">
            <?php the_post_thumbnail(array(200,160), array("class" => "alignleft post_thumbnail")); ?>
    	<?php the_excerpt(); ?>
    </div><!-- .entry-summary -->

    It should go in the entry-meta div, not the entry-content div.

    Thanks for helping to everyone. I went back to an old backup of the loop.php file and found the difference. duh… should’ve looked at that first. My apologies and thanks to those who wasted their time to try and help me.

    Rich

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘3.0.2 Updrage – Post Thumbnails’ is closed to new replies.