Title: Previous post within category using Recent Posts
Last modified: August 19, 2016

---

# Previous post within category using Recent Posts

 *  [ksek](https://wordpress.org/support/users/ksek/)
 * (@ksek)
 * [17 years ago](https://wordpress.org/support/topic/previous-post-within-category-using-recent-posts/)
 * I am trying to have a link on index.php that points toward the previous post 
   within the same category.
 * I know the prev_post code does not work on index.php, but have been using [Recent Posts](http://wordpress.org/extend/plugins/recent-posts/installation/)
   modified as described [here](http://wordpress.org/support/topic/254888). I am
   just looking for a way to have the previous link be category specific.
 * If there’s a way to do this, help would be appreciated.
 * Thanks.

The topic ‘Previous post within category using Recent Posts’ is closed to new replies.

## Tags

 * [previous post](https://wordpress.org/support/topic-tag/previous-post/)

 * 0 replies
 * 1 participant
 * Last reply from: [ksek](https://wordpress.org/support/users/ksek/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/previous-post-within-category-using-recent-posts/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
