Forums

[resolved] Help: Page navigation not working (5 posts)

  1. 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? :(

  2. 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!

  3. rmsylte
    Member
    Posted 2 years ago #

    Please post the fix. This is happening on other WP installations.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    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.

  5. Mark / t31os
    Moderator
    Posted 2 years ago #

    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... ;)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.