WordPress.org

Ready to get started?Download WordPress

Forums

list_cats: Display Parent>=0 & Child>0 (1 post)

  1. illinipundit
    Member
    Posted 9 years ago #

    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) ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags