I’m making a page with a query_posts loop where I gather all the games (posts) of a certain category. I’m using the gd star rating plugin and thus order them accordingly to their rating. Furthermore, I use navipage, please don’t mention the looks of it yet as I have not paid attention to them yet and looks horrible.
This is the page:
When I click on page 2 or 3, it still shows the resulsts from page 1. Page 2’s URL shows as http://www.bestofonlinegames.com/strategy/page/2
?php if ( have_posts() ) : $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('gdsr_sort=rating&gdsr_order=desc&cat=99&paged=$paged&posts_per_page=3'); while ( have_posts() ) : the_post(); ?>
<?php endwhile;?> <?php wp_pagenavi(); ?> <?php endif;?>
How can I solve this? tried various suggestions on what I could find when googling this problem. Thanks in advance!
- The topic ‘Pagination problem’ is closed to new replies.