“Show Children” for categories was only designed to work when displaying a Category Archive… because in that case, there is one “Current Category.” I do like the idea of picking up the category from the current post (presumably only in the case of a single post being displayed, yes?) but what happens if that post is in multiple categories? Suggestions please.
Thread Starter
thelaw
(@thelaw)
The other plugin will show all the categories and children with no “primary.” WordPress has to choose the primary (which is fine and I use a plugin to make that choice) but it’s useful to show children for all of them. For example, let’s say you have a medical blog and have areas called arms, hands, legs, feet, chest. A user selects an article written about walking and then both the legs and feet categories will open showing the children. It’s relevant as the user could have a knee injury or a foot injury and any subcategory is useful. Works great.
This is an awesome plugin. Some things are a caveat regarding the input information as well. As I mentioned, the defaults don’t work if nothing is put in. If you put in the wrong information in the last one – sort by “category” works but put in the wrong word such as “category_post” and watch the fireworks! You need some error check on there or a dropdown. This is really all small stuff. It’s a great plugin and hopefully what I’m writing here will help people that have a problem.
(You can try the collapsing categories – the function works well but it’s (a) javascript which I want to avoid and (b) it creates thousands of links my site map believes are broken.)
Thread Starter
thelaw
(@thelaw)
I’ve marked it as resolved since we’ve got an explanation – and thank you for making this available. It’s perhaps the only one of its kind that doesn’t badly break category hyperlinks.
I am considering adding an additional setting such that, when displaying a single post or page, the current post’s category would the “current category” … and likewise with custom taxonomies and so on. This would be in the next version. Please email me if you would like to test this.