When going to http://craigmdennis.com/articles/ Wordpress uses the index.php template.
When you go to http://craigmdennis.com/2010/05/ Wordpress uses the same template (markup below) but shows the same posts.
I have tried:
- Disabling all plugins - no change
- Changing the permalinks back to default
- Using an archive.php file.
It's obviously something to do with my loop.
<?php get_header(); ?>
<!-- index.php -->
<div id="content" class="content clearfix">
<div class="grid_8">
<?php if ( have_posts() ) : ?>
<?php query_posts('posts_per_page=10&paged='.$paged); ?>
<?php while (have_posts()) : the_post(); ?>
<article id="<?php the_ID(); ?>" class="post">
<h3 class="post-title">
<a href="<?php the_permalink(); ?>" rel=bookmark"><?php the_title(); ?></a>
</h3>
<?php the_excerpt(); ?>
</article>
<?php endwhile; ?>
<?php endif; ?>
<?php wp_reset_query(); ?>
<nav class="pagination"><?php posts_nav_link(); ?></nav>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
Can anyone shed some light on what I'm doing wrong?