Hide a category of posts from main blog, and only show in category view
I was able to get the result that I wanted by putting the following into the functions.php file in my theme directory: function exclude_category( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( ‘cat’, ‘-208’ ); } } add_action( ‘pre_get_posts’, ‘exclude_category’ ); The result of using this code was that any posts tagged … Read more