Need help with modifying latest blog posts code
-
On my homepage I have a list of latest blog posts showing. The first post is the latest one with a big picture, and older ones go down just as regular posts. Well the problem is, the older posts also show the First post, and its a nag for me because it is a duplicate, that I wish it would not show because I already have as the First Feature story. How can I modify the code to not to repeat the latest featured post again?
This is the code that pulls five latest stories, and I want the latest one ommitted from this script, but how do I do that? I dont know
<h2 class="headline">Recent Wireless News</h2> <?php $recent = new WP_Query("cat=1&showposts=5"); while($recent->have_posts()) : $recent->the_post();?> <h4><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h4> <?php the_content_limit(130, ""); ?> <div class="hppostmeta"> <p><?php the_time('F j, Y'); ?> | <a href="<?php the_permalink() ?>" rel="bookmark">Read the story »</a></p> </div> <?php endwhile; ?><br />
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Need help with modifying latest blog posts code’ is closed to new replies.