Do not show posts tag with featured in loop


I have a twentyten child theme that has a featured article code inserted immediately after the get_header in the index.php file. This works thanks to everyone’s help here. However, the featured post now is repeated later in the page.

How do I modify the loop so that it does not show the featured article? This is the code for inserting the latest post with the tag = featured.


wp_reset_query(); // reset query

if ( is_home() && !is_paged() ) { ?>

<div id="home-featured">
query_posts( array( 'showposts' => 1, 'tag' => 'featured' ) );
if( have_posts() ) : while( have_posts() ) : the_post();

<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>

if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.

the_post_thumbnail( array( 940, 180, true ) );



<hr />

<?php endwhile; endif; wp_reset_query(); ?>
</div><!--end #home-featured-->

Next is a get_template_part(‘loop’, ‘index’:wink:

I’ve tried offset, !has_tag(‘featured’:wink: and a few other things but nothing is working. Does someone have a sample for me?