damino — I have exactly the same issue. I was short on time to find the real answer, so here’s my temporary ugly hack:
Call wp_list_cats (or wp_list_categories) with the children=1 argument. Subcategories will be in the “children” class. I just added:
.children { display: none; }
to my CSS file. This works while I figure out how to address the issue.
With that out of the way, how do I *really* fix this? Inquiring minds want to know! Thanks!
Thread Starter
damino
(@damino)
Thanks for this hack.
We’re working to find the “normal” way to resolve this on WordPress-net.fr
I’will come here again if we find an issue.
Great — if you find the answer, definitely post it here.
I could fix it by modifying the core files, but it’s best not to touch those for the sake of future upgrades.
Thread Starter
damino
(@damino)
What happens if you put “children=0”?
We’re not alone, you’re right. Maybe I’ll have to write a plugin to remove everything in the “children” class of the wp_list_categories output until this gets fixed in the core files (assuming it will be fixed).
I wonder why it was removed?
Thanks for finding a solution to this prob. It’s been driving me nuts!
@msmeritt
i didn’t get you ,can you throw the code here.i need badly many of us too ….
I just used alfaspider’s hack and so far it’s been working just fine.
For me also it’s working fine so far
For me also it’s working fine so far
For me also it’s working fine so far
There is no better solution for the time being. Stay tuned for future enhancements.
BF
(@braydonf)
i think i got something to work
download and install this plugin
http://braydon.com/unfold_list_categories.zip
to only show 1 level of categories use this:
<?php unfold_list_categories(‘depth=1&hierarchical=1’); ?>
in place of this:
<?php wp_list_categories(); ?>
let me know if it works for you… it worked for me but it was sort of by accident i think