The documentation indicates that I can get a post that is in two categories by the following. I would like to be able to do this using category_name not category. Is this possible?
his shows posts that are in both categories 2 and 6:
$query = new WP_Query( array( ‘category__and’ => array( 2, 6 ) ) );
- The topic ‘Loop- want to show posts in two categories using category_name’ is closed to new replies.