posts_nav_link issue
-
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
andNext — Next Page ?
If I replace the missing options for spaces, I get the correct result ofPrevious
andNext
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…
https://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.
- The topic ‘posts_nav_link issue’ is closed to new replies.