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

  1. Nintendo
    Posted 7 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
    Posted 7 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
    Posted 6 years ago #

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

  4. scarlettpromotions
    Posted 6 years ago #

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

    My permalink structure is set up as:

    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:

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

    I found the following plugin:

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


Topic Closed

This topic has been closed to new replies.

About this Topic