WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Next page link gives 404 (7 posts)

  1. aksamford
    Member
    Posted 2 years ago #

    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.

  2. 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?

  3. aksamford
    Member
    Posted 2 years ago #

    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.

  4. 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.

  5. aksamford
    Member
    Posted 2 years ago #

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

  6. aksamford
    Member
    Posted 2 years ago #

    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!

  7. Cool.. glad it worked.

Topic Closed

This topic has been closed to new replies.

About this Topic