I am trying to use two loops on my page, one to get the current page's content and so on, and another to get all of the posts of a specific category.
When I do that, all of the tags for the current page disappears.
Here is my code,
Loop one:
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="content_wrapper"><?php the_content(); ?></div>
<?php endwhile; ?>
<?php endif; ?>
Loop two:
<?php query_posts(array('category_name' => 'test')); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div><?php the_excerpt(); ?></div>
<?php endwhile; ?>
<?php endif; ?>
Any ideas?
Thanx in advance!
query_posts
withwp_reset_query
, after adding that it works now.