Support » Fixing WordPress » Next page link gives 404

  • Resolved aksamford

    (@aksamford)


    On my site (www.amandasamford.com), I use the static front page and the page “blog” for posts (www.amandasamford.com/blog/. When I click “next page” on the blog page, it hits my 404 message. This doesn’t happen when I don’t use the static front page.

    Can anyone help me fix this? I’m sure it’s something easy but I’m not hitting the proper search terms to find a fix.

    I’ve tried checking my tags and categories to see if there was something with the same slug and no luck.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Christine Rondeau

    (@crondeau)

    Volunteer Forum Moderator

    I would try resetting the permalinks. Perhaps something funky is going on there…

    The code that I use for my page navigation is as follows:

    <div class="post-navigation">
    	<div class="navigation-previous"><?php next_posts_link('&laquo; Older Posts') ?></div>
    	<div class="navigation-next"><?php previous_posts_link('Newer Posts &raquo;') ?></div>
    </div>

    Perhaps your code isn’t quite right and the above would work?

    I tried replacing the existing code with yours and that didn’t work. I’m not sure how I would reset a permalink? Either link directs me to http://www.amandasamford.com/blog/page/2/ which is where the 404 appears.

    Christine Rondeau

    (@crondeau)

    Volunteer Forum Moderator

    In the settings > pemarlinks just hit save again. It could be that the htaccess file needs to be reset.

    You can also try changing the permalinks to default and see what happens.

    Just tried to reset the permalinks via settings < permalinks and now the blog shows the static page twice?

    Aha! I had reset the links to default (then saw your add’tl reply) and set them back to the previous setting, which worked.

    Thank you so much!

    Christine Rondeau

    (@crondeau)

    Volunteer Forum Moderator

    Cool.. glad it worked.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Next page link gives 404’ is closed to new replies.