I’m using WP_Query function to select some posts inside some categories.
'tax_query' => array( array( 'terms' => '1,2,3,4,20' )
This code above, give me all posts that are in the category 1 OR 2 OR 3 OR 4 OR 20.
I want to get all posts that are in the category 1 AND 2 AND 3 AND 4 AND 20….
Someone please have any claw how to do it?
- The topic ‘Get posts by combination of multiple categories using WP_Query’ is closed to new replies.