I have a custom type, which uses custom taxonomy to create categories. I can add 'products' and assign them to the category structure that I have created.
There is a top level menu which displays the parent categories, clicking each takes the user into the category hierarchy.
If there are no products in any sub-category of a parent category, then that listitem shouldn't display in the top level nav.
If I set hide_empty=1 all the parent categories disappear, not just the one with no products. Can anyone advise?
'pad_counts' => true
. This will allow empty top level terms to appear if child terms have items.