Add category name to next and previous links in Twentyten
-
In Twentyten the existing code does the right thing, but I would like to add the category name to the newer and older links, the code is this <?php next_posts_link( __( ‘Older’, ‘twentyten’ ) ); ?>
I have managed to do this but only for the next and previous posts as opposed to page, I did this with next_post_link instead of next_posts_link <?php next_post_link(‘%link »’,’Next in ‘.$cat_name,TRUE, ”) ?>
I have tried to transpose this, but without success. What does the ‘twentyten’ do within the code? And does anyone now how to add the category name to the older and newer links?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add category name to next and previous links in Twentyten’ is closed to new replies.