I have a site set up with the following:
- Post Type: product
- Taxonomy: product_cat
- Taxonomy Slug: hydro
The term hydro has several immediate child terms and several grandchild terms.
I need to write a loop that will display only the first-level children of the custom taxonomy term "hydro" (i.e - skip grandchild terms), along with a permalink to their respective taxonomy archive pages.
I've tried working with get_terms()
in various incarnations but I just can't get it right.
Any help is greatly appreciated. Thanks!