WordPress.org

Support

Support » Plugins and Hacks » list_cats: Display Parent>=0 & Child>0

list_cats: Display Parent>=0 & Child>0

  • What I’d like to do is have a hierarchical category list in my sidebar, with:

    Do not display sub-categories if the number of posts = zero

    But

    Display parent categories if the number of posts = zero only if a child category number of posts > zero.

    Does that makes sense?

    Here’s what I’m using:
    <?php list_cats(0, ”, ‘name’, ‘asc’, ”, 1, 0, 1, 0, 1, 1, 0,”,”,’RSS’,”,”, 1) ?>

  • The topic ‘list_cats: Display Parent>=0 & Child>0’ is closed to new replies.