thatdaveguy
Member
Posted 3 years ago #
This is my site:
http://hostcritic.net/
Anyway, if I try to go back to the previous page, it doesn't show the previous posts. It simply continues to show the posts that are on the home page. I can't figure this out.
I've tried WP-PageNavi but it's the same thing. I don't get it.
Any help? :(
tj.willems
Member
Posted 3 years ago #
For me the same deal!
http://www.netvliesraspoetin.nl
But when I look at your page now, it works. How did you do that??
HELP!
rmsylte
Member
Posted 2 years ago #
Please post the fix. This is happening on other WP installations.
It's normally because a template file is using query_posts which replaces the default query - including the paging variable - with a custom one. Try replacing the custom query with something like:
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args= array(
'category_name' => 'Stuff',
'paged' => $paged
);
query_posts($args);
?>
to retain the paged variable.
Paging problems have been answered many times before, too many times...
Look through these.
http://wordpress.org/tags/paged
and
http://wordpress.org/tags/paging
..and you'll find your answer..
NVM, esmi has you covered... ;)