Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have spent days looking for a WordPress plugin to automatically add next and previous links to the bottom of each post. I have found loads of plugins but I want one that will restrict the posts shown to posts in the same category.

I really dont know anything about php to write a custom plugin myself so any suggestions would be very much appreciated.

share|improve this question
    
The Codex is your friend. There are core WordPress template tags for this. See @songdogtech's answer, below. –  Chip Bennett Oct 24 '11 at 18:10
add comment

migrated from stackoverflow.com Oct 24 '11 at 18:07

This question came from our site for professional and enthusiast programmers.

1 Answer

No need for a plugin; see the docs for the parameters of next_post_link and previous_post_link

http://codex.wordpress.org/Function_Reference/previous_post_link

http://codex.wordpress.org/Function_Reference/next_post_link

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.