<?php wp_dropdown_cats('optioncount=1'); ?>
<?php dropdown_cats('1','All','name','asc','0','1','1'); ?>
works for me. see the template tags docs.
*bangs head against desk*
I got myself confuzzled. There is no wp_dropdown_cats() function! o_O
Anonymous
The problem with dropdown_cats is that it does not respect the subcategories in the dropdown list. wp_dropdown_cats sorts the list correctly but does not seem to have a command for listing the post count. Anyone have other ideas for how to do this?
Anonymous
There’s a reference to this same problem here with a partial solution:
[code]
<li id="categories">Categories:
<?php list_cats(0, 'All', 'name', 'asc', '',1,0,1,1); ?>
[/code]
But, again the heiarchy structure is sadly missing.
I value to hierarchy over the post count – since it appears there is no way to have both. Anyone?
Re-engineer the dropdown_cats code to do what you want it to. 🙂