LeoLopesWeb
11/29/2019 - 12:24 PM

exclude/include a custom taxonomy from the post loop

$args = array (
		'posts_per_page' => 1,
		'order'          => 'DESC',
		'tax_query' => array(
    	array(
        'taxonomy' => 'category',
        'terms' => array('cat', 'dog'),
        'field' => 'slug',
        //'operator' => 'NOT IN',
      ),
    ),
);