• I have created a custom post type called ‘listing’ and a hierarchical taxonomy called ‘listing-type’. I have been using wp_list_categories() to display a hierarchical list of terms which has been working well e.g.

    Cycling (45)
    – Mountain biking (30)
    – Road cycling (15)

    The problem is I’ve now added another taxonomy called ‘region’ and would like to only display a list of terms that have a certain region selected. For example ‘Region A’ might not have any ‘Road cycling’ listings associated with it, so the list should look like…

    Cycling (30)
    – Mountain biking (30)

    From what I have read this can’t be done with wp_list_categories(). Hopefully someone can help point me in the right direction.

  • The topic ‘Exclude terms from wp_list_categories()’ is closed to new replies.