Pagination Reloading Homepage (4 posts)

  1. mikedistras
    Posted 3 years ago #


    Ive faced this pagination issue before, but managed to always fix it, however whatever coding i add into the site seems to make absolutely no difference at all.

    When i try to goto the next page (/page/2), the page seems to just refresh (and the url of the page does not change either).

    The page overall includes a few loops, all are finished with a reset query so shouldnt interfere with the main loop. Im pretty sure this site WAS working, but isnt now maybe due to an WP upgrade...

    Heres a pastebin of the homepage loop im having trouble with. Any ideas?


  2. vtxyzzy
    Posted 3 years ago #

    If you are using this in a static front page, the get_query_var() needs to be 'page' instead of 'paged'. See the Codex here: https://codex.wordpress.org/Pagination#static_front_page

  3. mikedistras
    Posted 3 years ago #

    I changed 'paged' to 'page' as per the example, but it made no difference at all to the pagination.

    The site this is on is: http://www.thefightlounge.co.uk if that helps

  4. vtxyzzy
    Posted 3 years ago #

    Is the loop you are trying to paginate the main loop? Have you tried changing all but the main loop to use WP_Query instead of query_posts()?

Topic Closed

This topic has been closed to new replies.

About this Topic