Grid Issue with Loop
-
Hello all,
I have an odd problem with creating a grid of thumbnails. The grid ends up not being correct, it will skip a space or be generally wacky. If I have three separate loops with a clear between each one it works, but I can’t get the loop to work cleanly.
Any ideas on creating a simple grid of 9 thumbnails? Thanks!
<?php $my_query = new WP_Query('category_name=Videos&showposts=9'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate[] = $post->ID ?> <?php $video = get_post_meta($post->ID, "video_value", true); $thumbnail = get_post_meta($post->ID, "thumbnail_value", true); ?> <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;?> <div class="clear"></div>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Grid Issue with Loop’ is closed to new replies.