Issue 1
In your tax query, you should use NOT IN
instead of NOT_IN
. That’s preventing your tax query from working ( Assuming that the other fields are correct ).
Issue 2
In your arguments for WP_Query()
, you should use category__not_in
instead of cat
. So, change your code to:
$argsQuery = array(
'posts_per_page' => 3,
'post_type' => 'download',
'category__not_in' => 5 ,
);
Related Posts:
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- Show Post Count of a Category
- Querying Term Posts in Loop
- WP the_posts() on single-cars.php get category link
- WP Query filtering by custom category not showing all relevant posts
- Display all posts in a custom post type, grouped by a custom taxonomy
- WP_Query by a category id and a custom post_type
- Filtering a custom post type by custom taxonomy in archive template
- $wp_query->queried_object->ID throws warning: Undefined property
- How can I list all the categories under a Custom Post Type (taxonomy)?
- Select All in Parent Category, Group by Child Category?
- How to build a complex page structure
- get_query_var() not working in pre_get_posts
- WP_Query ignores post_type in category view
- query multiple taxonomies
- Custom Taxonomy with Custom Post Type Finds No Posts
- How to filter custom post types by custom category taxonomy
- Is there a way to use regular categories with custom post types?
- The Operator “NOT IN” Does Not Work In tax_query
- How to list all categories and tags in a page?
- Counting Posts of a Given Post Type Having a Specific Taxonomy?
- Custom query – alternate posts by category
- category__in not working on custom post type
- WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)
- remove support for ‘Categories’ for a custom post type
- How to get_queried_object on multiple objects?
- Glossary with Custom Post Type
- Custom-Taxonomy as categories: Remove “most-used” tab?
- how to group custom post type posts by custom taxonomy terms
- Filter get_categories() for taxonomy term in WordPress
- Displaying Posts Related to Other Posts by a Taxonomy Term?
- Sorting a list of posts displayed under a list of associated terms (which should be sorted without initial articles)
- How to get the parent’s taxonomy?
- List with categories, subcategories and posts of custom posttype
- Querying Posts by Taxonomy From Alternate Network Site
- Add filter to wp_list_categories and query what type of taxonomy-terms it use?
- Sort the main query in subcategories/terms?
- Help with hierarchical custom taxonomies and permalinks…almost there
- Custom Taxonomy List links being re-written
- custom post type paging not working past page 3
- New WP_query in template not working with CPT+category on some pages
- Custom edit post column – category not showing
- WP Query group/order by category name
- Should unaltered default loop/query return a list of custom posts belonging to a custom taxonomy?
- Taxonomy list. Order by a specific custom post type count
- Want to filter only parent post in admin area
- Multiple Archive Pages for Custom Post Types AND Taxonomies
- Custom Taxonomy and tax_query Issue?
- How to show custom taxonomy in the permalink?
- List all custom post type posts from a given category?
- Query for posts in 2 taxonomies
- Exclude current post when getting related post on custom post type and taxonomy
- Custom post type taxonomy template
- Custom/separate categories for custom post type
- Ordering Custom Post Types with WP_Query
- WP_Query with custom post_type and cat retrieving unwanted posts with the custom posts
- Query Custom Post by Category
- Taxonomy structure of Sport site
- Loop through categories and create tab for each
- Getting all custom posts with a certain category
- Paginated Taxonomy Term Archive including one post per term
- Custom post query by taxonomy
- Querying CPT with Two Taxonomies
- Display Custom Category (taxonomy) Name in Custom Post Type
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Custom Query to display posts with custom field
- Get taxonomy description based on variable
- get_categories() for only CPT
- Query Custom Post Types & category_name?
- Optimised Code for Pulling Taxonomy Posts
- Display types of posts in edit.php instead of All, Published, Scheduled and Draft
- WP_Query search posts by custom post type and custom taxonomy
- custom taxonomy archive by year
- CPT posts listed by category with custom rewrite URL, please help!
- Get categories and descriptions from custom post type
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- Combining custom post type and post category
- Is it possible to create a shortcode that will query a post based on taxonomies?
- wp_query to find posts by year and month
- How to create new category for custom post type?
- Custom Post Type Loop within Shortcode
- Fetch taxonomies by custom post type id array
- Weird problem happening with custom taxonmy when creating/updating posts
- Group custom posts by custom taxonomy names
- How can i skip same post from taxonomy term?
- Filter by custom taxonomy slug on a custom post type
- Pagination on category page with custom post types
- Insert HTML inside link in a walker
- Custom Post Types and independent Categories – complex Taxonomy
- Taxonomy Archive: Display only one post per term from separate custom taxonomy
- Should I use custom taxonomy or custom post type
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- Set menu active state for custom posttype and category, given custom taxonomy term
- How to show CPTs in term archive
- Display CPT posts based on specific taxonomy
- shortcode to show custom post types by category
- Display all posts in main category and 1 subcategory
- showing custom post types of a certain category only
- Query/list all terms and their custom post count
- Linking to the most recent post in a Custom Post Type