Title: Single.php Category
Last modified: August 19, 2016

---

# Single.php Category

 *  Resolved [guox](https://wordpress.org/support/users/guox/)
 * (@guox)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/singlephp-category/)
 * Not sure to post in this here or in Theme.
 * How can i make single.php only to show next and previous link to the post that
   is in the same category?
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/singlephp-category/#post-1957266)
 *     ```
       <?php previous_post_link('%link', 'Previous in category', TRUE); ?>
       <?php next_post_link('%link', 'Next in category', TRUE); ?>
       ```
   
 * References:
 * [http://codex.wordpress.org/Function_Reference/next_post_link](http://codex.wordpress.org/Function_Reference/next_post_link)
   
   [http://codex.wordpress.org/Function_Reference/previous_post_link](http://codex.wordpress.org/Function_Reference/previous_post_link)
 *  Thread Starter [guox](https://wordpress.org/support/users/guox/)
 * (@guox)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/singlephp-category/#post-1957268)
 * doh…stupid me, missing last argument.
 * Thanks……
 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/singlephp-category/#post-1957272)
 * No problem, happens to the best of us. 😉

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Single.php Category’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/singlephp-category/#post-1957272)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
