@dmytro Thank you sooo much! I played with what you gave me and I think I’ve come up with something that works for my child theme. The other thing I noticed is now I need something to remove it from the “previous” and “next” post links :/
function exclude_category( $query ) {
if ( $query->is_home() || is_archive() && $query->is_main_query() ) {
$query->set( ‘cat’, ‘-636’ );
}
}
add_action( ‘pre_get_posts’, ‘exclude_category’ );
Thanks @dmytro, I’ll try that.
I’d like to leave the archive widget, I’d like like a particular category to not return results in the archives… For example, Month:October would pull all October posts but not including the BABY category.