Hey there,
For those of you that still have problems with:
“2nd page not showing, or the posts of the 2nd page are the same as on the first one”
Here is my fix to this problem, as suggested by alchymyth:
For your information: I’m Using WP v3.1.2, WP-PageNavi v2.74 and TwentyTen as my Theme.
In my case it hasn’t anything to do with the index.php
Here it was the <?php wp_reset_query(); ?>
that was missing in the loop.php
I inserted that now at the top of the file at line 21, followed by the code:
<?php /* Display navigation to next/previous pages when applicable */ ?>
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<div id="nav-above" class="pageNav">
<?php if(function_exists('wp_pagenavi')) : wp_pagenavi(); else: ?>
<p style="float:left">
<?php next_posts_link(__('« Previous entries','mytheme')); ?>
</p>
<p style="float:right">
<?php previous_posts_link(__('Next entries »','mytheme')); ?>
</p>
<?php endif; ?>
</div><!-- #nav-above -->
<?php endif; ?>
Although I had wasted hours to find a solution for this, it works fine now for me. Thanks for all your help!!!
Greetz, Alex