Title: next_post_link(): format?
Last modified: August 18, 2016

---

# next_post_link(): format?

 *  [ult](https://wordpress.org/support/users/ult/)
 * (@ult)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/next_post_link-format/)
 * When I tried to switch from next_post() (referred as deprecated) to next_post_link(),
   it stopped working. Would anybody post a sample of template code for this new
   tag?
 * my code was: `<?php next_post('% <img src="[path]" alt="next" />','','yes')?>`

The topic ‘next_post_link(): format?’ is closed to new replies.

## Tags

 * [next_post_link](https://wordpress.org/support/topic-tag/next_post_link/)
 * [previous_post_link](https://wordpress.org/support/topic-tag/previous_post_link/)
 * [template_tags](https://wordpress.org/support/topic-tag/template_tags/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [ult](https://wordpress.org/support/users/ult/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/next_post_link-format/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
