If I use...
query_posts( array( 'category__and' => array( 10,55,56 )));
...I get the expected results.
However I need to use a variable instead:
$catarray = 'array( 10,55,56 )'
query_posts( array( 'category__and' => $catarray));
When I do that,I don't get any results.
My category IDs (which will populate $catarray) come in from a form and I want only the post that fit ALL of the categories.
Can anyone please help?!