I want to create a custom query that pulls posts that are in category X, and EITHER of categories Y and Z.
Is there a way to do this using the existing WP_Query params, or would I have to construct my own custom SQL statement?
As a rough example, I'd like to be able to do something like the below to get posts that are in category 56 and also in either one of categories 12 and 34.
$featuredPosts = new WP_Query( array(
'category__in' => array(12, 34),
'category__and' => array(56)
));
Thanks :)