• Resolved belindajohnstone

    (@belindajohnstone)


    I’m using the_post_thumbnail on my category.php to create category thumbnail galleries, and the first image is always higher:
    link to site

    When I remove the first post, the problem then affects the second one. I’ve tried creating the gallery through the plugin “get the image”, and the same thing happens.

    I’m using WP 3.1 with twentyten, and my own child theme. I’ve tried using just twentyten, and removing all css relating to the images and it still happens.

    Any suggestions greatly appreciated, been going in circles for days.

Viewing 1 replies (of 1 total)
  • Thread Starter belindajohnstone

    (@belindajohnstone)

    I’ve solved it by using a div class with the float: left attribute, and the following template tag:

    <?php the_post_thumbnail('thumbnail'); ?>

    rather than:

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

Viewing 1 replies (of 1 total)
  • The topic ‘the_post_thumbnail images not lining up’ is closed to new replies.