I have a custom post type with a custom taxonomy and I am trying to pull posts with a certain meta value along with a custom taxonomy (tag in my case). Is this possible and if so, how would the query looK?
Here is a excerpt of how I am pulling the posts with just meta value and it works fine.
$args = array(
'post_type' => 'box',
'post_status' => 'publish',
'posts_per_page' => -1,
'orderby' => 'meta_value_num',
'meta_key' => 'position',
'taxonomy' => 'box-cat'
);
$boxes = new WP_Query( $args );
So this successfully pulls all the posts that are in "box-cat" category and ordered by the "position" value. But I have also a tags taxonomy that I would like to add into the query as orderby....How can this be done?
Thanks!