• Hello! Categories are structured like this:
    cat1
    subcat1
    subcat2
    cat2
    cat3
    I want to make cat-s (1-3) shown without listing their subcategories on all pages except the ones listing categories. For example, on front page categories cat1-cat3 will be displayed, but if someone clicks on cat1 it will show only subcat1 and subcat2. I tried using wp_list_categories(‘depth=1’) – that does what I want except it doesn’t list subcategories when listing parent one. How could I do that?

    PS: sorry for that description….

  • The topic ‘Exclude subcategories on all but category pages?’ is closed to new replies.