function exclude_category($query) { if ( $query->is_home ) $query->set('cat', '-3'); return $query; } add_filter('pre_get_posts', 'exclude_category');

Send a message

9 + 5 =