WordPress.org

Ready to get started?Download WordPress

Forums

next_posts_link and previous_posts_link not working on category view (4 posts)

  1. Nintendo
    Member
    Posted 5 years ago #

    The Older Entries and Newer Entries on my Categories aren't working. They are working fine on posts and pages but not on categories. I have my permalinks set to /$category%/%postname%/ and I noticed when I change this to another permalink structure, it works fine.

    What column in the database does previous_posts_link() and/or previous_posts_link() work off of? Any advice or tips would be appreciated.

  2. dotnetchic
    Member
    Posted 5 years ago #

    I'm having the same issue...did you ever get this resolved? My site's in production now, so I can't change the permalink structure to resolve the issue...

  3. yaypaul
    Member
    Posted 4 years ago #

    Snap. They we're working when I published the site, but now the category next/prev links don't work.

  4. scarlettpromotions
    Member
    Posted 4 years ago #

    Hi there, I was having the same issue as well! Here is the solution:

    My permalink structure is set up as:
    /%category%/%postname%/

    In my archive.php, I have the code:
    <?php next_posts_link('« Previous Entries') ?>
    <?php previous_posts_link('Next Entries »') ?>

    But when I'm on my category page, for example:
    http://www.blahblah.com/in-the-news/

    The paging doesn't work:
    http://www.blahblah.com/in-the-news/page/2/ --> returns a 404

    I found the following plugin:
    http://barefootdevelopment.blogspot.com/2007/11/fix-for-wordpress-paging-problem.html

    That fixes this problem! Amazing, I want to kiss this guy! :)

    K

Topic Closed

This topic has been closed to new replies.

About this Topic