category__not_in
is a private query var. This means you can only use it when constructing a query in PHP, not in a url.
You would have to construct your own custom public query var and bind that to a filter that reads the category and then changes the query accordingly.
Related Posts:
- What is the most efficient way of querying posts based on visits and date for current day?
- How to implement time filter to show random post 1 month for one category and 3 months for other categories
- What is considered a default query for the request filter?
- Query total number of posts
- How to use the query hook/filter?
- Filter posts in category archive page by year using a dropdown
- Filter post query to only show direct children of category
- Display posts ONLY from the current logged in user and current week/year/month Elementor posts
- Query Posts | Combining multiple form inputs into query arguments to generate one filter result
- Woocommerce set loop_shop_columns to be 3 in the main shop page loop only and 4 otherwise
- When should you use WP_Query vs query_posts() vs get_posts()?
- order by numeric value for meta value
- How to query for most viewed posts and show top 5
- WP_Comment_Query pagination, delving into the unknown
- How to list some posts first in the loop based on post id
- Sort posts by category name and title
- Custom WP_Query order by post_meta and (author) user_meta
- WP_Query for WooCommerce Products
- ajax category filter
- How to order posts tag by tag?
- Overriding The Loop with filter or hook
- WP Rest API v2 return posts with specific tag
- Perform query with meta_value date
- Highlighting Sub topic in a post?
- How to get any tag ID
- how to retrieve specific product attribute value in an sql query?
- WordPress custom archive page
- Splitting the main query in multiple loops with query_posts and/or pre_get_posts?
- Retrieve or Query Pages by ID
- What’s the point of the query_vars filter?
- How to do a query on custom taxonomies that is uncategorised?
- Refine/Filter WP_Query Posts with jQuery or Ajax
- Empty tax_query array returns an empty array
- Meta Query for specific months
- How to apply filter inside a single wp_query?
- How do I search inside specific taxonomies in WordPress
- When to add_filter() to Custom Query
- if/else on custom query gives 200 OK when condition not met?
- How to correctly pass values to wpdb->prepare()?
- Setting get_queried_object
- remove query arg from url after set query
- difference between like ‘%%%var%%’ and ‘%var%’
- How to use filter hook “the_posts” with a function that refers to $this?
- only delete post within query / for each statement (front end)
- query_vars filter not working even though query string parameter is present
- Sort query by author: 1 author, then others
- How can I filter by slug depending on language selection
- Overwrite YoastSEO meta-tags with another page’s [closed]
- How to orderby multiple meta fields if some fields are empty
- How to duplicate 5 posts out of WP_Query results?
- Bypass “supress_filters” in WP Query
- creat filter with wp_query
- WP_query sorting can’t sort danish letters (æ, ø, å)
- Slow queries on a huge database
- Multisite pagination issue by multi query archive 404
- Query with relation and one without relation using multiple taxonomies?
- WP_Query with different postmeta filter for each categories
- Slow WP_Query with ‘OR’ on meta_query
- How to get list of posts from permalinks?
- How to filter a query by date in a shortcode?
- Transient api Caches confused
- How can I override one post and make it display content for another post?
- Get multiple users with meta value in one query and populate WP_User class
- Get a list of posts by specific category
- How to check the array values, what WP_Query has brought to me?
- Shortcode for custom query not returning results when attributes are added
- Get specific ACF key and value from all posts – no access to DB
- Filtering by multiple conditions in the loop
- I am officially missing something about transient posts
- Start Query from 2nd Post without offset
- Post incorrectly excluded when using “category__in”?
- Custom meta_query order for Elementor based on post meta key [closed]
- Any way to use FETCH_KEY_PAIR with $wpdb?
- Query against multiple locations within single custom post type post
- How to query users by post count no less than 10
- WP Query. Ordering posts by another post types meta
- How to make a search query if not found in post table then search in postmeta table?
- Insert wp_query after the_content with plugin (filter the_content won’t work)
- WP_Query about meta_key and its array value
- how to show more than 1 post into three columns query
- Track write actions to the database
- Using the same WP_Query for shop and widgets in WooCommerce shop
- How can I get all the posts that are related with a specific taxonomy term?
- Custom query for tag and custom tag from 2 post type
- wpdb get_results() returns only 2 rows
- Filter posts/pages by user_role array
- Search Functionality broken by the wp 4.2 update
- Issue attempting a wp_query_posts with tags
- add_query_vars does not work
- Retrieve posts in custom post type and specific taxonomies
- Custom post types loop on a page template
- Get the number of rows from $wpdb->get_results not working
- Parsing External Table Arguments
- Get Child Custom Post Content on Single.php?
- difference between methods of query
- Query posts by meta value and sort by another meta key
- How much does $wpdb->prepare(), then $wpdb->query() VS straight $wpdb->query(), can slow down the load time of whole page
- how to use transient method?
- Pre_get_post on CPT archive page
- Get posts that were most recently tagged