This is probably a sign of bad blogging… but I have too many categories already. Maybe if I stuck to one uber-specific topic, I wouldn’t have this problem–but that wouldn’t be nearly as much fun. What I needed instead was a decent way of controlling which categories are displayed. After looking around for awhile, I didn’t really find any plugins that did just what I wanted: limit the category display to only those that have a certain number of categories. Several of them allow you to designate certain categories as public or private or hide them completely from the home page, but I didn’t want to hide them for good.
I just wanted disclosable categories.
As you can see on the right, I decided to to just hack the files myself and get it working. It was actually a pretty simple fix. There are a couple of places in the category-building PHP file that make SQL calls. I simply added an extra parameter to the SELECT statement: (category_count < 6) as disclosable. Then, wherever the
