Thanks for responding. I’m running the loop twice so that I can use WP in more of a CMS fashion, creating pages that display post in a particular category. So each page only displays post from the corresponding category.
Here is the code for the page running the blog:
<?php/*Template Name: Blog Template*/?>
<?php get_header(); ?>
<div id="main">
<div id="content">
<!-- The Loop starts here... -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<div class="entry">
<?php the_content(); ?>
</div>
<p class="postmetadata"><?php edit_post_link('Edit','',''); ?></p></div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Next Entries »') ?></div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
<?php $my_query = new WP_Query('category_name=' . get_query_var('name') . '&showposts=10'); ?><!-- Rewinds The Loop so we can call more posts -->
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?><!-- Restricts posts to those matching the page category -->
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p class="postmetadata">Posted by <?php the_author(); ?> on <?php the_time('D, M j, Y'); ?></p>
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div>
<p class="postmetadata">Posted by <?php the_author(); ?> on <?php the_time('D, M j, Y'); ?> | <?php the_tags('Tags: ', ', ', ''); ?> | <?php edit_post_link('Edit', '', ' | '); ?> <a href="<?php the_permalink() ?>#comments" rel="bookmark" title="Comment on <?php the_title(); ?>"><?php comments_number('No Comments »', '1 Comment »', '% Comments »'); ?></a></p>
</div>
<?php endwhile; ?>
<!-- The Loop ends here -->
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>