Support » Plugins » add post count to wp_dropdown_cats?

  • Anyone know how I can add a count of posts in each of the categories listed by wp_dropdown_cats? Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • <?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

    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?

    There’s a reference to this same problem here with a partial solution:
    <li id=”categories”>Categories:

      <?php list_cats(0, ‘All’, ‘name’, ‘asc’, ”,1,0,1,1); ?>

    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. 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘add post count to wp_dropdown_cats?’ is closed to new replies.