How to exclude specific categories from the archives page, need help... (3 posts)

  1. Spencer Hill
    Posted 5 years ago #

    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!

  2. Mark Ratledge
    Forum Moderator
    Posted 5 years ago #

  3. Spencer Hill
    Posted 5 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic