WordPress.org

Support

Support » Themes and Templates » How to exclude specific categories from the archives page, need help…

How to exclude specific categories from the archives page, need help…

  • Heya,
    So I have a page that uses <?php wp_get_archives('type=monthly&show_post_count=1') ?> to display my posts by month. The problem is that it includes posts from categories that I don’t want it to display in it’s count.
    Using wp_get_archives or any other function that works, I need a way to list posts by month with the ability to exclude certain posts from certain categories, can anyone help? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Mark Ratledge

    @songdogtech

    Forum Moderator

    Thank you for the reference. I tried installing the plugin but I don’t understand how to configure it. I read through the documentation and it appears that I need to have my theme widget enabled but I’m ultimately not looking for a widget I’m looking for a basic PHP function.

    Maybe I just don’t understand how this plugin should be used though? Either way thank you! Anyone else have more suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to exclude specific categories from the archives page, need help…’ is closed to new replies.