• Hello all,

    I am having a strange problem with getting the thumbnails in a theme to consistently line up. I’ll get three across the top, then I’ll end up with a blank spot. If I put a “clear” call in it fixes it, but I can’t seem to get duplicate loops working that won’t show duplicates. Here’s the loop code, ignore the variables I have in there:

    <?php $my_query = new WP_Query('category_name=Videos&orderby=newest&showposts=9');
      while ($my_query->have_posts()) : $my_query->the_post();
      $do_not_duplicate[] = $post->ID ?>
    
    	<div id="video">
    
    		<a  title=<?php the_title(); ?> rel="vidbox" href="<?php echo $video; ?>">
    		<img width="120" height="90" src="<?php echo $thumbnail; ?>" /></a>
    
    		<h8><?php the_title(); ?></h8>
    		<p><?php the_excerpt(); ?></p>
    		<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">(Transcript...)</a>
    
    	</div>
      <?php endwhile;?>
  • The topic ‘Problem with grid thumbnail layout.’ is closed to new replies.