I'm trying to use query_posts to show a list of recent additions in the header. I got this working fine, except for one major issue. For some reason, after listing the 4 most recent articles, everypage lists these 4 articles.. So I'm guessing that somehow the Query_posts in the header is effecting the content of the whole page.
Is there a way to stop this?
Does the content / entry loop have to be before any query_posts? (like how the sidebar is setup?)
This is what I'm using in my header.
<?php query_posts('showposts=4');?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="contents">
<strong><a title="View this post" href="<?php the_permalink() ?>">
<?php the_title() ?>
</a></strong>
</div>
<?php endwhile; endif; ?>