1
vote
1answer
379 views

How to determine the depth of a term in a custom taxonomy?

I'm building a <select> dropdown to display a list of terms for a custom hierarchical taxonomy. How do I know the depth of each term? I'd like to add some indentation for child-terms (the more ...
2
votes
2answers
376 views

Dropdown: Display terms from B only if has relationship with a term A selected

I've googling for a solution for this issue and found nothing: I have some posts from a Custom Post Type (Restaurants) and its taxonomies ('city' and 'cuisine'). Whenever I create a restaurant post, I ...
1
vote
1answer
110 views

How to get a list of taxonomy terms which are being used only within certain post types?

I have a custom taxonomy called 'locations' which is being shared across a bunch of post types. I want to make a select field dropdown list of my locations (terms) to let users go to the taxonomy term ...
1
vote
1answer
946 views

Query posts from a child taxonomy term id

this is my structure.... State1 CT1-1 - Car_Model Post-CT1-1 (the posts of child) - Car_Model Post-CT1-2 CT2-1 - Car_Model Post-CT2-2 CT3-1 - Car_Model Post-CT3-1 State2 CT1-2 ...
0
votes
1answer
298 views

Unable to display the post titles in a drop down

I have post type Dealers and a taxonomy Manufacturer i have a list of manufacturers and relevant posts. Im trying to display the list of manufacturers in a drop down, when a manufacturer is selected ...