0
votes
1answer
59 views

List post from current taxonomy children

I have a custom post type and a taxonomy with children, with a template file named taxonomy-productcategories.php. On this i want to list all children with their posts. Child taxonomy 1 Child ...
0
votes
0answers
13 views

Showing parents of taxonomy terms associated with a post OR showing only bottom-level terms associated with a post

I have a custom taxonomy structure associated with a custom post type on my Wordpress site (selling sheet music): It's something like this, to give some context: Flute ensemble 3-part flute ...
-1
votes
2answers
103 views

query only direct child and sub-terms of a current term archive

i'm using woocommerce on my theme, and it comes with a proudct_cat term as a defualt catagory on the shop proudct. I need to show on every proudct_cat archive its direct child and the sub-tems, but ...
0
votes
0answers
28 views

How to include child terms within parent?

I have the following for a specific term ID: <?php if (!is_tax( 'listing_category', '542' )) { ?> test1 <?php else: ?> test2 <?php } else { ?> This works great for making ...
0
votes
1answer
741 views

How to get the top most term (top ancestor) of a custom taxonomy child term?

I need to get the topmost term (top level ancestor) of a taxonomy term. Suppose the following term hierarchy: North America United States New York New York ...
0
votes
1answer
2k views

Display Child Categories of Current Post ID

I'm starting to love this place more and more, super helpful! Anyway, todays dilemma is as such: I want to display as a list the child terms only, of a specific parent term, of a custom taxonomy, ...
0
votes
1answer
970 views

Get only immediate children (and not grandchildren) of a hierarchical custom taxonomy term

Say, for example, I have the following custom taxonomy: Term 1 Term 1.1 Term 1.2 Term 1.2.1 Term 1.2.2 Term 1.3 Term 2 Term 2.1 How can I get the children terms of Term 1, ...