tax_query
In this WordPress Custom Query tutorial we are going to be learning how to use tax_query to query your posts via either default or custom taxonomies.
We already learned about simple taxonomy queries in this series. And they are cool but in this video I’m going to show you how you can query your posts by taxonomy in a little bit different and more flexible way.
We are going to do that by using tax_query
property of WP_Query
object. We are also going to learn how you can create a custom taxonomy and also query that taxonomy.