I want to display the pages 'famous' and 'mschief'.
Using this code, WP_query() doesn't return any result:
$args = array(
'post_type' => 'page',
'pagename' => 'famous,mschief',
'posts_per_page' => 3
);
This code returns one of the 2 pages:
$args = array(
'post_type' => 'page',
'pagename=famous,mschief',
);
And this code returns the 2 pages correctly:
$args = array(
'post_type' => 'page',
'pagename=famous,mschief',
'posts_per_page' => 3
);
Why does the first piece of code (the only correct one to me) doesn't work? And why the two others produce these results?