Excluding the latest post?
-
I currently have this code on my front page to display my 3 latest posts, however, I want to display only the 3 latest posts EXCLUDING the single latest post.
For example, not the latest post 4, only posts 3, 2 and 1.Does anyone know an answer to this?
<?php query_posts("showposts=3&category_name=Headline"); $i = 1; ?> <?php while (have_posts()) : the_post(); ?> <div class="clearfloat"> <?php $values = get_post_custom_values("Image"); if (isset($values[0])) { ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>" > <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=100&h=40&zc=1&q=100" alt="<?php the_title(); ?>" class="left" width="100px" height="40px" /></a> <?php } ?> <div class="info"><a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php the_title(); ?></a>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Excluding the latest post?’ is closed to new replies.