The problem:
With category structure like
Country
-city 1
-city 2
-city 3
-city 4
and post belongs to -city 1, city 1 is displayed in dtree even if "country" is excluded. Well this is bad because if you have 100+ cities excluding them all manually IS a trouble.
How can I prevent this and show by default ONLY categories which a parents (like Countries)?
Any help would be much appreciated.
anyone? It actually must work with widget settings 0:Root - show only Parent categories... but it doesn't for some reason.
I don't understand what you're saying.
The category tree is built from get_categories. Perhaps you could read up on that and let me know what parameters you'd need to accomplish what you're trying to do?
No, all needed is already in your pluginm it just doesn't work right. Let's say, if you have post in a subcategory, and exclude the main category by ID, the subcategory is still shown in the list (because it has different ID). The only way to exclude it is use subcategory's ID.
I need to exclude all subcategories by using only one ID - of their main category.
And this is not working.