Any ideas why this works (with either red or blue as the colour):
PHP Code:
$loop = new WP_Query(
array(
'colour' => 'red',
'post_type' => 'products',
'posts_per_page' => 12,
)
);
But when I change the colour to an array to allow me to load two options at the same time, it doesn't load anything at all:
PHP Code:
$loop = new WP_Query(
array(
'colour' => array( 'red', 'blue' ),
'post_type' => 'products',
'posts_per_page' => 12,
)
);
This is driving me a little batty :(
An alternative solution would be to load all the posts, then skip them via some sort of conditional, but I'm not sure what that conditional would look like. Any tips on this would be much appreciated too :)