I was just wondering if anyone could help me out. My pagination isn't working. When I click on the 'next page' link it sends me to a url ending in /page/2/ but gives a 404 error.
I have read tens of questions that are similar but none of the solutions seem to work for me.
Here's my code:
<?php
// Video Category
// calling the header.php
get_header();
// action hook for placing content above #container
thematic_abovecontainer();
?>
<div id="container">
<?php thematic_abovecontent(); ?>
<div id="content">
<?php
$temp=$wp_query;
$wp_query=null;
$wp_query=new WP_Query();
$wp_query->query('posts_per_page=2&cat=7&paged='.$paged);
echo '<h1>'; single_cat_title(); echo '</h1>';
while ($wp_query->have_posts() ) : $wp_query->the_post();?>
<div>
<h2><?php the_title();?></h2>
<p><?php the_date();?></p>
<div class="video-content"><?php the_content();?></div>
</div>
<?php endwhile;?>
<div id="nav-below" class="navigation">
<div class="nav-previous"><?php previous_posts_link(); ?></div>
<div class="nav-next"><?php next_posts_link(); ?></div>
</div>
<?php $wp_query = null;
$wp_query = $temp;
?>
</div><!-- #content -->
<?php thematic_belowcontent(); ?>
</div><!-- #container -->
<?php
// action hook for placing content below #container
thematic_belowcontainer();
// calling the standard sidebar
thematic_sidebar();
// calling footer.php
get_footer();
?>
Thanks.