Exclude a category if post is only in that category using wp_Query
This is very unusual case, and the only solution I can think of here is to get an array of category ids to include into category__in in order to skip posts that are only assigned to category 1 In order to achieve this, we must use get_terms() to get all the categories. We will use … Read more