When you go to page three or further WP uses index.php instead of the category view, and I can't figure out why.
Here is the category view on page one, and here is on page three.
Here is my loop:
<?php query_posts( 'p=50' );
while ( have_posts() ) : the_post(); ?>
/* THE MOD INDEX POST */
<?php endwhile;
rewind_posts(); ?>
<?php rewind_posts();
if (have_posts()) :
query_posts("cat=9,-14&posts_per_page=5&paged=$paged");
echo "$paged";
while (have_posts()) : the_post(); ?>
*/ THE POST */
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
Does anybody see anything wrong with my query? Am I doing something wrong?
I have displayed the file at the top of the page to show that after page three it breaks.
I would appreciate any help, as I am building a custom WP Theme for my website