Post thumbnails only displaying one in list of 3
-
Hi, I have a custom list of posts on my home page and I want to display the featured thumbnail to the left of the title. I have this code below but only one thumbnail is showing up.
<div class="headline-section"> <a href="<?php bloginfo('url'); ?>/emergency-news/emergency-services/emergency-training-news"><img src="<?php bloginfo('template_directory'); ?>/images/section-training.png" alt="" /></a> <?php the_post_thumbnail(array(35,35), array('class' => 'alignleft')); ?> <?php query_posts("showposts=3&order=DESC&cat=12"); while (have_posts()) : the_post(); ?> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <?php endwhile;?> </div>
Any help would be appreciated.
Thank you!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Post thumbnails only displaying one in list of 3’ is closed to new replies.