Hi All,
First of all I realise that I am posting about a well documented issue, but I have spent hours and hours trying to fix this, and I apologise in advance if it is an easy fix that I have missed.
So I have a custom query_posts function on the site that is simply meant to include posts of a certain category. This works fine, but when the posts exceed one page the second page is the exact same as the first. The code I am using at the moment is
<?php
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query('showposts=5&&cat=4'.'&paged='.$paged);
?>
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="post-title">
<h2>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent link to <?php the_title(); ?>">
<?php the_title(); ?></a>
</h2>
</div>
<div class="post-content">
<?php the_content("Continue Reading"); ?>
</div>
<?php endwhile; ?>
<div class="post-nav">
<p><?php posts_nav_link('∞','«« Previous Page','Next Page »»'); ?></p>
</div>
</div>
<?php $wp_query = null; $wp_query = $temp;?>
I have also tried the solution
here
with no luck.
The posts display fine with both, buy no pagination.
Site is here if it helps.
Any help would be much appreciated. Have been pulling my hair out over this for a while.