I have this scenario: one custom post type and two custom taxonomies.
I’m inside the archive page of my custom post type. I pass the id of taxonomy 1 with $_get variable.
I would like to get:
– a list of post, group by taxonomies 2, where taxonomy 1 = $_get variable
but I don’t know how to change the args of WP_query 🙁
Right now I arrived here, but as you can see, I don’t know where to insert the taxonomy 2
$args = array( 'post_type' => 'custom_post_type_slug', 'tax_query' => array( array( 'taxonomy' => 'taxonomy_01_name', 'field' => 'id', 'terms' => my_get_variable, ) ) );
and the result should be:
thanks a lot!!!!
- The topic ‘args for WP_query with 2 different custom taxonomies’ is closed to new replies.