The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Keep next-prev links within category (2 posts)

  1. dragonsjaw
    Posted 4 years ago #

    I am using a child of twentyten.
    I want to keep the next-previous links within the category.
    I have read posts on here as far back as 2005, read the codex, and tried several things and looked for plugins.

    Currently I am trying this code:

    <div id="nav-below" class="navigation">
    					<div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'twentytenchild' ) . '</span> %title', true ); ?></div>
    					<div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'twentytenchild' ) . '</span>', true ); ?>
    				</div><!-- #nav-below -->

    with no luck.

    Any suggestions?

  2. dragonsjaw
    Posted 4 years ago #

    I am using this in single.php without success to keep in category.

Topic Closed

This topic has been closed to new replies.

About this Topic