• On my single post template, I’ve used the following:


    <div>
    <div class="alignleft"><?php previous_post('« %','','yes','yes') ?></div>
    <div class="alignright"><?php next_post(' % »','','yes','yes') ?></div>
    </div>

    to include Previous/Next links at the top of a post linking to other posts in the same category.

    Is there an “if” statement I can use so that these lines do not appear in a category with only one post?

    Thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Hide prev/next links for categories with only 1 post?’ is closed to new replies.