Does anyone know if it is possible to have multiple arrays within query_posts if so how?
I'm looking to query posts that are in category 1 & 2. But also posts that are in 1 & 3 and 1 & 4.
So the posts MUST be in category 1 as well as one of the other categories.
So the category__and would be where I've started which allows me to query posts both in 1 & 2 but how would I then progress to add the others 3,4 etc? as adding them 1,2,3,4,5 will only show posts in all 5 categories correct?
Here is what I have so far:
<?php
query_posts(
array( 'category__and' => array(1,2),
'posts_per_page' => 5,
'orderby' => 'date',
) );
while (have_posts()) : the_post();
?>
Is it possible to put an array of arrays to perform what I have asked?