• Resolved Anonymous User 7536166

    (@anonymized-7536166)


    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…
    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.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘posts_nav_link issue’ is closed to new replies.