WordPress.org

Ready to get started?Download WordPress

Forums

Keep next-prev links within category (2 posts)

  1. dragonsjaw
    Member
    Posted 2 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>
    				</div><!-- #nav-below -->

    with no luck.

    Any suggestions?

  2. dragonsjaw
    Member
    Posted 2 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