WordPress.org

Ready to get started?Download WordPress

Forums

Thumbnals (the_post_thumbnail) in WordPress 3.0? (3 posts)

  1. adam_ais
    Member
    Posted 3 years ago #

    I've been testing and upgrading one of my themes for WordPress 3.0. I use a the_post_thumbnail in my theme to display a thumbnail or the default thumbnail if one is not supplied:

    <?php
    if ( has_post_thumbnail() )
    the_post_thumbnail( 'thumbnail' );
    else
    echo '<img src="'.get_bloginfo("template_url").'/imgs/thumbnail_default.png" />';
    ?>

    It seems to grab the thumbnail for the posts with thumbnails, but no longer echo's the else image. What's changed in 3.0? I looked through the Codex and searched the forum, but couldn't find anything.

    Thanks!

  2. LwEEs
    Member
    Posted 3 years ago #

    Yeap, I'm having the same issue, WP 3.0 RC1 does not like PNG files, it's ok with jpg just not showing PNG at all. Hopefully will be resolved on release.

  3. LwEEs
    Member
    Posted 3 years ago #

    Sorry, I forgot to update this. The problem was with the .htaccess file, after I reset that to match the current wp3.0 setting it all worked right again.

Topic Closed

This topic has been closed to new replies.

About this Topic