WordPress.org

Ready to get started?Download WordPress

Forums

Single post navigation - depending on previous page (2 posts)

  1. TimoVeld
    Member
    Posted 1 year ago #

    Hi all,

    I figured this would be a fairly comon thing. But I can't seem to find out how to do it. Or I'm just not using the correct search terms.

    I've got a website with a hompage that lists all my posts, and 3 menu items that each list a category.

    When I click on a post via a category, then I want the next|prev navigation to stay in that category.

    When I click on a post via the homepage, I want the next|prev navigation to be chronolonical.

    This is de navigation code which is in my single.php

    <?php next_post_link('%link', '< Previous ', FALSE); ?> <?php previous_post_link('%link', '| Next >', FALSE); ?>

    This is the correct setupt for navigating there from the homepage, but not when I get there via a category.

    Please help, I've been banging my head on this for hours now!

    Kind regards.

  2. vtxyzzy
    Member
    Posted 1 year ago #

    Here is an article that might help: http://wordpress.mcdspot.com/2010/06/02/stay-in-category/

Topic Closed

This topic has been closed to new replies.

About this Topic