function exclude_category($query) { if ( $query->is_home ) $query->set('cat', '-3'); return $query; } add_filter('pre_get_posts', 'exclude_category');
Name
Email Address
Message
13 + 7 =