WordPress.org

Ready to get started?Download WordPress

Forums

Pagination Reloading Homepage (4 posts)

  1. mikedistras
    Member
    Posted 12 months ago #

    Hi,

    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?

    http://pastebin.com/P72C1H7x

  2. vtxyzzy
    Member
    Posted 11 months 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
    Member
    Posted 11 months 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
    Member
    Posted 11 months 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()?

Reply

You must log in to post.

About this Topic

Tags