• I post quite frequently so my monthly archives can get pretty long and I’ve decided on this format:

    ————————-
    Archive for May 2006

    All posts in this month: (Loop 1)

    <ul>
    <li><a href="#postId" title="Preview this post">Post Title</a></li>
    <li><a href="#postId" title="Preview this post">Post Title</a></li>
    <ul>

    Post previews: (Loop 2)
    Title
    Excerpt … More link
    Post Meta Data
    Title
    Excerpt … More link
    Post Meta Data
    ————————-
    I’m ok with all of that, the only problem is when the monthly/category archives still only have a few posts. For example there’s a list listing one post and then a preview of one post. Is there a way for me to tell WordPress:
    <?php if (5+ posts()) { ?>
    <em><--Do this--></em>
    <?php } else { /*Less than 5*/ ?>
    <em><--Do this--></em>
    <?php } ?>

    ??

    thank you!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘If 5 posts then… If 4- posts then… ??’ is closed to new replies.