Title: posts_nav_link issue
Last modified: August 19, 2016

---

# posts_nav_link issue

 *  Resolved Anonymous User 7536166
 * (@anonymized-7536166)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/posts_nav_link-issue-1/)
 * Can someone confirm what I am seeing please…
 * I have the following code in a search results page…
 *     ```
       <div class="alignleft"><?php posts_nav_link('','','Previous') ?></div>
       <div class="alignright"><?php posts_nav_link('','Next','') ?></div>
       ```
   
 * As you can see the posts_nav_link has two missing options for each line. In the
   first, I am missing “sep” and “prelabel”. In the second I am missing the “sep”
   and “postlabel”. I am sure you can see why.
 * The results I am getting are…
    `« Previous Page — Previous` and `Next — Next 
   Page »` If I replace the missing options for spaces, I get the correct result
   of `Previous` and `Next`
 * It’s not an issue as such, but the documentation does say optional, which is 
   why is confused me.
 * This can be seen on my 3.0.5 site too…
    [http://blog.myimagegallery.co.uk/index.php?s=e](http://blog.myimagegallery.co.uk/index.php?s=e)
   This search results page shows two nav sections at the bottom. The first one 
   is with spaces added, the second without.
 * Thanks.

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

 *  [Andrew Nacin](https://wordpress.org/support/users/nacin/)
 * (@nacin)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/posts_nav_link-issue-1/#post-1915297)
 * Yeah, the function treats an empty string as an argument that was not supplied,
   thus the defaults are used. This is very unlikely to change, as the function 
   has been like this way probably since its introduction, in WordPress 0.71.
 *  Thread Starter Anonymous User 7536166
 * (@anonymized-7536166)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/posts_nav_link-issue-1/#post-1915298)
 * Thanks, can someone change the documentation then please. 🙂
 *  [Andrew Nacin](https://wordpress.org/support/users/nacin/)
 * (@nacin)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/posts_nav_link-issue-1/#post-1915303)
 * The Codex is editable — just use the login you used to access the forums. 🙂
 *  Thread Starter Anonymous User 7536166
 * (@anonymized-7536166)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/posts_nav_link-issue-1/#post-1915306)
 * ah, I was looking at the documentation at [http://phpdoc.wordpress.org/trunk/WordPress/Template/_wp-includes—link-template.php.html#functionposts_nav_link](http://phpdoc.wordpress.org/trunk/WordPress/Template/_wp-includes---link-template.php.html#functionposts_nav_link)
   
   as this is linked to via the lookup button in the wordpress editor.
 *  Thread Starter Anonymous User 7536166
 * (@anonymized-7536166)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/posts_nav_link-issue-1/#post-1915309)
 * Not to worry, on the codex page, my exact code block is listed with “this is 
   poor code…”!
 * I’ll change my code.
    Thank you for your help.

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

The topic ‘posts_nav_link issue’ is closed to new replies.

## Tags

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

 * In: [Alpha/Beta/RC](https://wordpress.org/support/forum/alphabeta/)
 * 5 replies
 * 2 participants
 * Last reply from: Anonymous User 7536166
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/posts_nav_link-issue-1/#post-1915309)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
