Viewing 1 replies (of 1 total)
  • Plugin Author ambrosite

    (@ambrosite)

    This is answered in the documentation, in the section that explains the usage of the ‘return’ parameter. You need to test the return value of the function. If it returns false, then no next/previous link was found:

    <?php if ( !previous_post_link_plus() ) {
        echo '<span class="inactive">« Previous</span>'; // if there are
    no older posts
    } ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Check if there are any previous posts.’ is closed to new replies.