Additional query arguments Post query format
-
Hi!
Great plugin collection. I am especially thrilled about the Post Carousel.
I wonder if you could give me a hint how to use the “Additional query arguments” field. I want to show post that belong to category 2 AND 6 (for instance). The standard behaviour seems to be OR. Can I enter this in the Additional query arguments field, or?
$query = new WP_Query( array( 'category__and' => array( 2, 6 ) ) );I had a bad experience adding something to a widget that broke my site totally, having to dive deep into the DB with Phpmyadmin. 🙂
Thanks in advance for any help!
Best regards
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Additional query arguments Post query format’ is closed to new replies.