previous_post_link AND next_post_link – browse ONLY in same category
-
I have the following scenario:
I’m reading a post which is connected to one category.
In this post im able to browse previous and next post.
My problem is, that when i’ve browsed the few post in this category, the browse will go on to post from other categories.
Am I able to ONLY browse the post from the category which the post belongs to.
My browsing links looks like the following:
<div id="nav-above" class="navigation grid_16"> <div class="nav-previous"><?php previous_post_link( '%link', '<div class="meta-nav">' . _x( '«', 'Previous post link', 'twentyten' ) . ' %title</div> ' ); ?></div> <div class="nav-next"><?php next_post_link( '%link', '<div class="meta-nav">%title ' . _x( '»', 'Next post link', 'twentyten' ) . '</div>' ); ?></div> </div>
- The topic ‘previous_post_link AND next_post_link – browse ONLY in same category’ is closed to new replies.