Answering my own question here:
Is it really as easy as including this within a pre_get_posts filter?
$query->set('category__not_in', $term_id);
Related Posts:
- Redirect category to url with /category
- Using pagination with multiple loops causes it to break
- Get the children of the parent category
- How to check if I’m on the last page of posts?
- Remove parent category from permalink? Basically only have the child category?
- Custom permalink structure leads to be 404 on pagination
- How to get permalinks with category base working with sub-categories
- Category archive by year with permalink support /category/YYYY
- Add a URL prefix to permalinks of one category of posts only
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Should category.php and The Loop be used if the query needs to be customizable?
- Filtering categories in the permalink structure
- Allow duplicate permalink slugs for posts in different categories
- Exclude the category from the WordPress loop
- Force WordPress to Show Pages Instead of Category
- How do I get the category URL from get_the_category?
- How do I use the same post slug for different Categories?
- How to remove category from wordpress url?
- Multiple post categories – single permalink
- How to create a custom url for a category [closed]
- get_field not displaying my custom field value
- Default WP Gallery – show only galleries of a certain category
- How to change the category in URL for posts in multiple categories?
- How to exclude uncategorized from permalink structure /%category%/%postname%/
- Rearranging posts based on categories
- WP_Query not looking at child category
- Randomise results from a category page?
- Display all posts in category, with specific tag posts at top
- How to get the url to tag & category base set by the user?
- Show div only if post is in specific category
- 404 error on subcategory pages
- Categories’ hierarchy in URL
- How to show a category post to a specific registered user
- Display list of Sub-Categories and the posts they contain, within one main Category
- Loop with Dynamic Categories
- How can I create a loop to build slides based on multiple categories using Coda Slider
- Changing the category permalink structure
- How to Include the Parent and Child Category in the Permalink if the Post is Added to Both
- Remove child products from woocommerce category page [closed]
- Category links suddenly started giving 404 errors
- Get a list of commas separated categories inside a loop
- Best and Cleanest way to remove /category/ from category permalinks? [duplicate]
- Categories list loop – add separator every year
- How would you create a “weekly” archive?
- How to exclude categories from recent posts, recent comments & category widgets?
- Exclude subcategories from the url
- How to display only the parent category in the permalink
- Root level category, tag, author and archive pages to work
- Listing all posts from current category on page
- Categories and Tags returning 404 on the sidebar when using ugly permalinks
- Display one latest post from multiple categories
- Archive pagination causing 404 with permalinks structure
- Permalinks – Different structures for different categories?
- How do I get the total number of categories in a list of search results?
- Plural Category Base Slug On Category Archive Page
- custom permalinks for category archive ( custom base and no parent slug )
- Check if post belongs to any category
- WooCommerce change category url and product base
- How do I display the posts from a custom post type on a category.php page?
- How to group the loop posts in a particular by author?
- Removing category base form links messes up the parent-child behavior
- Display products for a category, sorted by post_excerpt
- New categories are now going to 404s
- Exclude category from loop not working
- Listing Parent, Child and GrandChild Categories and then the PostTitles on Page Template !
- Duplicate Category and Page URL loads Category instead of the Page
- Category archive page – loop through posts of certain tag (with pagination) – pre_get_posts
- Best way to programmatically link to multiple categories (union/intersection) [closed]
- Default category link for a custom category is a broken link
- If newest post of category is newest post in general, skip first post of category
- a-z list, categories and sub categories in loop
- How to set up Author archives with sub category URL
- Allow dot in wordpress permalinks (only for categories)
- Why would in_category only return one post in a specific category?
- wordpress wp_list_categories
- How to get category URL with the slug?
- Is it possible to select and edit the way the most recent post from a certain category is displayed on the page?
- How to filter posts by format and category via url?
- How to Filter categories in the permalink structure
- Specifying multiple categories in URL (permalink)?
- Possible to make a subdirectory that loops through a single category?
- Displaying multiple loops based off of category
- How to loop only categories without posts (+ show category featured image with acf) [closed]
- WordPress subcategories return 404 in custom template
- force category base – archive pages work WITH & WITHOUT category base slug in url?
- Additional featured post on first page
- Show all posts for a specific category/author
- How get permalink for the current category or tag?
- Add “page-a” slug to category link if user visit category link from “page-a”
- create a page which displays a list of categories title+ short description?
- Changing permalink from /postname/ to category/postname/
- Enter a variable in the ‘category_name’ parameter
- Second level subcategory
- how to define category loop last class in the third
- Query Posts Exclude Entire Category
- Class active for Archive link – looped out
- One Specific Category To Permalink
- Taxonomy name repeating when showing 2 posts from each category
- Category being displayed without base parmalink
- wordpress sub-category ( lowercase letters + non-latin characters ) = 404