WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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

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

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



share|improve this answer

Your Answer


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