• Resolved David Gard

    (@duck_boy)


    Hey all,

    Probably an easy one, but how do I check if the Post displayed is the last or first in that Category?

    I am using the code below and wish to only display the seperator if both the ‘Previous Item’ and ‘Next Item’ links are displayed.

    Thanks.

    <div class="newsItemNav">
        <?php previous_post_link('&laquo; %link', 'Previous Item', TRUE) ?> |
        <?php next_post_link('%link &raquo;', 'Next Item', TRUE) ?>
    </div>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Find out if Post is first or last’ is closed to new replies.