Title: Next Post Link Function
Last modified: August 22, 2016

---

# Next Post Link Function

 *  [tristanmarsh](https://wordpress.org/support/users/tristanmarsh/)
 * (@tristanmarsh)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/next-post-link-function/)
 * Hi there,
 * I’m trying to insert a next post link, with the default title and limited to 
   the category taxonomy.
 * I’ve tried the [codex page](http://codex.wordpress.org/Function_Reference/next_post_link)
 * But I am having trouble limiting the category and having the title show up as
   the actual post title. Code used;
 * `<?php next_post_link( $format, '%title', $in_same_term = true); ?>`
 * Could I please get some assistance, or more importantly a reference to how to
   use the php arguments properly?
 * Thanks

Viewing 1 replies (of 1 total)

 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/next-post-link-function/#post-5797692)
 * You haven’t defined `$format` there, so unless this is set somewhere, that’s 
   a problem. You also haven’t defined the parameter for `$in_same_term` the right
   way.
 * You’d need to use something like this:
 * `<?php next_post_link( '%link &raquo;', '%title', true ); ?>`

Viewing 1 replies (of 1 total)

The topic ‘Next Post Link Function’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/next-post-link-function/#post-5797692)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
