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
- How to check if I’m on the last page of posts?
- How to get permalinks with category base working with sub-categories
- Filtering categories in the permalink structure
- Allow duplicate permalink slugs for posts in different categories
- Multiple post categories – single permalink
- How to exclude uncategorized from permalink structure /%category%/%postname%/
- 404 error on subcategory pages
- Categories’ hierarchy in URL
- Loop with Dynamic Categories
- How can I create a loop to build slides based on multiple categories using Coda Slider
- Category links suddenly started giving 404 errors
- 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?
- How to display only the parent category in the permalink
- Listing all posts from current category on page
- custom permalinks for category archive ( custom base and no parent slug )
- Listing Parent, Child and GrandChild Categories and then the PostTitles on Page Template !
- Duplicate Category and Page URL loads Category instead of the Page
- wordpress wp_list_categories
- How to get category URL with the slug?
- WordPress subcategories return 404 in custom template
- force category base – archive pages work WITH & WITHOUT category base slug in url?
- How get permalink for the current category or tag?
- Class active for Archive link – looped out
- Taxonomy name repeating when showing 2 posts from each category
- Display the last post by each category?
- How to disable default category linkbuilding?
- Show parent category in URL of subcategory archive page
- Mod_Rewrite to show only last subcategory in URL
- Counter in loop in foreach
- How to exclude the last post from a category(featured for example) from the main loop?
- How to rewrite the post URL according to the category?
- Removing subcategories from permalinks [duplicate]
- A single category with a specific permalink structure differing from the standard set for the rest of the site
- Order by category titles
- ajax for filtering posts by category in wordpress loops
- Hide the word ‘category’ from my permalinks
- Limit get_categories to show each category once
- Is there a reason I cannot get the current category in a loop?
- Category archive is displaying all posts rather than the specific category
- Use the category name instead of category slug in permalinks
- new WP_Query all post in a category inside the loop
- How to add orderby parameter for sorting on category.php
- Function to automatically rename the base category permalink
- How to display the parent category if only the child category has been chosen
- Category tags with comma’s
- Custom Permalink with child categories creating 404
- Remove any product that is featured from regular display loop [WooCommerce]
- More efficient way to list posts by category [duplicate]
- Redirect year month day postname permalink structure to category postname structure
- Category nicename inside loop in wordpress
- category link not working for a specific slug, works for others
- filter a loop base on specific category
- Editing Loop So It Targets Specific Tags?
- prefix to post permalinks without affecting category permas
- Problem: retrieving parent category’s first post
- Category URL Management
- Need help with major category and permalink re-organization
- Posts made to category don’t show up (do show up on frontpage)
- How to use category slug with a regular page
- Category post count is not correct
- Display all categories but only if they have posts in them that have a specific tag assigned
- Include last post date in get_categories loop
- Using custom structure prefix showing 404 for sub-categories
- How to add tags under categories
- How to remove category name for only one category?
- How to get specific (grand parent) category of current post?
- Subcategories randomly not working after page/post/category edit in wordpress. Fix: saving permalinks twice
- how tho change number of posts in loop from specific categories
- Category URL’s 404 after setting category base to ‘.’
- error in specific category loop
- loop in single.php of the same category
- Please tell how to stop the category from showing up on posts
- Hide a category/posts from the homepage in wp
- Remove “category” from permalink with add_rewrite_rule
- Change Category Base For Custom Post Type or Posts Page
- When category name and title are the same … WP will select archive.php instead of single.php
- Trying to display all posts in a category
- Accessible Subcategory URL’s pages without using .php hack
- same permalink for parent category and child category
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Custom Post Type + Category archive
- How to exclude a specific categogy from a custom page template
- Create monthly archive for parent category
- Change category base based on category
- How to get multiple loop in category.php, my scripts becomes madness
- Most efficient use of custom taxonomies, categories, and pages
- Removing short versions of category archive URL
- Custom Category Page Not Working [duplicate]
- My Query is getting the wrong data
- How do i add custom post types to this query?
- Custom loop by url
- Do not show all post from all categories, just show posts from category in current loop
- Echo Category In Loop
- Category archive page has two URLs even when default theme is active with no active plugins
- WordPress how to remove parent slug from category URLs