Loop doesn’t want to end :(
-
Hi,
I’ve got a loop in my header
<?php query_posts('category_name=feature&showposts=4&orderby=rand'); ?> <?php while (have_posts()) : the_post(); ?> <li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><span><?php the_title(); ?></span></a></li> <?php endwhile;?>
And i want to create an archive page so in the main content area i’m starting the loop by standard procedure :
<?php if (have_posts()) : ?>
And it acts like the loop from the header wasn’t closed, because it shows me 4 posts from the Feature category …
Any help ?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Loop doesn’t want to end :(’ is closed to new replies.