• Hi,

    Just a quick question. On my frontpage, there is a short archive ‘list’, with postcounts after every month. It looks like this:

    may (34)
    april (41)
    march (33)

    The code for this is:

    <ul>
    <?php wp_get_archives('type=monthly&show_post_count=1'); ?>
    </ul>

    My question: Is it possible to count all the posts, EXCEPT the ones in 1 specific category? The reason for this is that I am excluding the posts in this category on my front page (and archive page) too.

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter pyrrho

    (@pyrrho)

    Does anybody know? In wp_list_categories you CAN exclude a category (with wp_list_categories('exclude=16')), but this can’t be done with wp_get_archives…

    I have the same question. Anyone know how to do that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Exclude category in post count’ is closed to new replies.