• That next/previous tag (<?php posts_nav_link('separator','previous','next'); ?>) shows “next” on the page displaying the latest post(s). I understand that it is looping back to the first post, but 99 percent of users probably think that “next” is the next post chronologically. Therefore, is there a way to not show the “next” link on the latest post(s) page?

Viewing 3 replies - 1 through 3 (of 3 total)
  • There certainly is. It would certainly work with an if else combo. Something like :
    (in your index.php file)
    If current page is “index.php” (and nothing else after that address…)
    then echo <?php posts_nav_link('seperator','previous',''); ?>
    else echo <?php posts_nav_link('seperator','previous','next'); ?>
    Have fun 😉 And one you get the solution, post it here to share it.

    Thread Starter pezastic

    (@pezastic)

    Yeah, right. I couldn’t write code to save my life. I’m merely a shameless copy-and-paste-aholic.

    Join the club 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Next and Previous Links’ is closed to new replies.