WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Help! Page navigation for wordpress stuck on the first page (5 posts)

  1. ratnalaurentina
    Member
    Posted 3 years ago #

    I'm having a problem with wordpress page navigation. It seems to get stuck on the first page of these posts although in the address of the browser.. it could be seen as http://...../page/2 or so. I'm not sure how to get around the problem, I think it has a connection with the loop, but yet again, I don't know how to fix it. Anybody please help? The code is in here http://pastebin.com/M0rg4C2d

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    your code is missing the paged parameter in the query:

    instead:
    query_posts('cat=-1,-4,-32,-48,-49');

    try:
    query_posts('cat=-1,-4,-32,-48,-49&paged='.get_query_var('paged'));

    (untested)

  3. ratnalaurentina
    Member
    Posted 3 years ago #

    @alchymyth Thank you so much for your kindness at helping me!!!!! Your code is working and it works like charm! I hereby declared this topic is resolved. :D

    Thanks!

  4. jbrewlet
    Member
    Posted 2 years ago #

    I also have this same problem. Our site has been working great and now it seems to stick on the landing page. The URL changes but won't go anywhere. I can't seem to apply the fix you provided for ratnalaurentina to my situation.

    See: http://makecollab.com

    Here's the code of the Page Template
    http://pastebin.com/yUeDwJ8Y

    Thanks for any help.

  5. jbrewlet
    Member
    Posted 2 years ago #

    I have found the problem. It was the plugin, Plimus creating a bunch of pages on it's own and corrupting things. Thanks anyway.

Topic Closed

This topic has been closed to new replies.

About this Topic