Support » Fixing WordPress » Keep next-prev links within category

  • 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?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Keep next-prev links within category’ is closed to new replies.