‘No SubCats’ Plugin: Take Subcategory Posts out of Category pages
I thought it was bad form to have a category page that included subcategories. With all that, it was a mess.
After all, subcategories get their own page! Those posts don’t need to be in both places!
So I needed to filter out subcategories.
See all of our WordPress Plugins
And I couldn’t just filter them out of archive.php … that disturbed the number of posts per page, sometimes leaving continuation pages with nothing on them! We needed to change the query.
This plugin solved the problem for me; I hope it helps you, too.
It works great with the Category Visibility plugin (our version).
It works fine with the Fold Category List plugin as long as you have a Post in the parent category. Otherwise the subcategory links will not appear in the sidebar. While this does not actually affect the performance of NoSubCats, It makes the page links unavailable.
It might not play well with some other plugins or some themes.
For WordPress 2.0.x only Download below.
For WordPress versions 2.1 – 2.9, “Just One Category (1.1): is doing what you need so I refer you there: Just one Category.
For WordPress 3.0 and later Just one Category broke… We modified Just one Category for our use. We can’t assure you it will work for you but you’re welcome to try it and use it until the “real” Just one Category gets updated. Get Just One Category (Modified).
- Simply download and unzip it.
- Put it in your plugins directory.
- Activate it.
Version 0.3: Download
Version 0.2: Corrects for behavior change in WP 2.0.5 detecting Category ID.
Version 0.1: Initial release for WP 2.0.4.