[Plugin: Query Multiple Taxonomies] Hide cats who have no posts nor posts in child cats?
-
Hi.
I found it visually cluttered when I’m looking at a category tree full of Category1 (0) (+)
Category2 (0) (+)
Category3 (0) (+)
Category4 (0) (+)
Category5 (3) (-)As a workaround, I:
1. Addedcount{{count}}
as a class in theli
in the mustache template file you provide
2. Addedcount0 {display:none !important;}
to my theme’s CSS file.
3. Assured that all posts in subcategories were also added to parent category. (Otherwise I would hide empty parent categories of very full subcategories, and the child is hidden along with the parent.)This basically works, unless I didn’t want to have posts in child cats also be in parent cats. So the feature request would be:
If neither the category nor any of its children contains any posts, the category is not displayed in the list view.
https://www.ads-software.com/extend/plugins/query-multiple-taxonomies/
- The topic ‘[Plugin: Query Multiple Taxonomies] Hide cats who have no posts nor posts in child cats?’ is closed to new replies.