Does anyone know if a statement like below should work?
$theposts = get_posts(“category__and=1,2”);
I have tried several variations but I just can’t seem to get the formatting correct it just seems to return any post/no posts/none matching posting etc. The get_posts help page says you can use query_posts parameters.
Anyone know what I am doing wrong?
- The topic ‘Should get_posts(“category__and=1,2”) work?’ is closed to new replies.