Excluding posts from a category but only if they’re not in multiple categories
This can be done by getting an array of category ids you want to show. We can use get_terms() for this: $taxonomy = array( ‘category’ ); $args = array( ‘exclude’ => array(‘111’),//id of the category term you want to exclude ‘fields’ => ‘ids’ ); $ct_ids = get_terms( $taxonomy, $args ); Now you can use this … Read more