• I have a website I’m working on and for some reason the thumbnail works great for one post, but doesn’t display correctly for the second post.

    Here’s my code:

    <ul>
    <?php $recent = new WP_Query('category_name=recipes&showposts=2'); while($recent->have_posts()) : $recent->the_post();?>
    <div class="RecipeImage"><?php the_post_thumbnail('thumbnail'); ?>
    </div>
    <span class="upper">
    <a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
    </span>
    <br/>
    <span class="OrganicBoxInfo">
    <?php the_excerpt(); ?>
    </span>
    <?php endwhile; ?>
    </ul>

    Here’s the link http://www.farmfreshbeans.com/
    The location on the page of this issue is under “Recipes” – if you’ll notice the first thumbnail image is perfect, the second one however looks odd..

    Help would be greatly appreciated! I’m stumped… I’m sure its obvious where my mistake is but I’ve looked at it for so long now I can’t see it…

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Recent Posts with Thumbnails Not Displaying Correctly’ is closed to new replies.