How to properly query from a custom taxonomy
-
Hello everybody
I have this problem and i need your help
I created a custom type for posts named ‘business’ the business can have two custom taxonomies ‘area’ which is the area where the business is situated and
‘featured’ which can be a ‘simple’ or ‘payed’I have created a area-taxonomy.php template file and I want to show all the business in the selected area which are also ‘payed’
Cant figure out two things:
1. How do I get the term_id for the selected custom taxonomy (area) in order to use it in my query
2. How do I make a query where both terms must be
area => ‘selected_area’
and
featured => ‘payed’
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘How to properly query from a custom taxonomy’ is closed to new replies.