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
- Filtering a custom post type by custom taxonomy in archive template
- How can I list all the categories under a Custom Post Type (taxonomy)?
- category__in not working on custom post type
- Displaying Posts Related to Other Posts by a Taxonomy Term?
- Querying Posts by Taxonomy From Alternate Network Site
- custom post type paging not working past page 3
- WP Query group/order by category name
- Should unaltered default loop/query return a list of custom posts belonging to a custom taxonomy?
- How to show custom taxonomy in the permalink?
- Query for posts in 2 taxonomies
- Custom post type taxonomy template
- Loop through categories and create tab for each
- get_categories() for only CPT
- WP_Query search posts by custom post type and custom taxonomy
- custom taxonomy archive by year
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- Is it possible to create a shortcode that will query a post based on taxonomies?
- wp_query to find posts by year and month
- Custom Post Type Loop within Shortcode
- Weird problem happening with custom taxonmy when creating/updating posts
- Pagination on category page with custom post types
- Custom Post Types and independent Categories – complex Taxonomy
- Should I use custom taxonomy or custom post type
- Display CPT posts based on specific taxonomy
- showing custom post types of a certain category only
- Custom Post Type Archive Page Filtering
- Filtering WP_Query Dynamically on the Front-End
- Why get_posts() not returning only selected category posts from Custom Post Type?
- Show custom post type filtered by category
- Custom Post Type With Categories
- Return one unique custom post type result when it shares a custom taxonomy in WP_QUERY?
- Show a Category X’s custom post type on Category X archive page?
- Filter CPT posts by one or more categories
- Getting categories of posts under a custom taxonomy
- Custom WP Query on custom meta and sort by multiple meta keys value
- How can I made custom taxonomies relationship?
- Custom taxonomies relationship
- WP Query with categories only shows one post and ignores the category
- How to edit this code to get the categories in achieve page?
- Hierarchy and access control for Custom Post Types (CPT)
- Best method to make posts searchable, sortable and filterable – custom field, tag or category?
- First custom field value (out of several) displayed twice after query
- WP_Query orderby and tax_query
- browse by category and tags?
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- How to make WP_Query not to show irrelevant posts?
- Get parent category id from child category page for custom taxonomy
- WordPress wp_query() basic question about args
- Create an archive page for custom post type with custom taxonomy
- How to add current custom taxonomy slug to body class
- WP_query – Filter by tax_query and meta_query using multiple select
- Disable custom taxonomy on admin bar
- how to get this tax_query working?
- The Difference Between Categories and Tags and Taxonomies and Terms
- How to sort a WP_Query by a custom field AND ALSO filter by a different custom field
- Custom Post Type Categories URL not displaying posts
- How to get the post terms from a child taxonomy
- display posts of custom post type with custom taxonomy
- Custom post type and custom taxonomy 404 on page 2
- WP Query results showing posts outside of category ID
- tax_query (if the terms are empty)
- How to count other posts not having specific taxonomy terms?
- Get posts by category name
- List child categories from parent category on custom taxonomy page
- How to properly use Categories with Custom Post Types
- Custom post not appearing under custom taxonomy category
- WP_Query order custom post type with certain meta key value by post modified date
- Cant’ Display Custom Post Type Title Base on Tax Terms
- Custom post type category permalinks and archive pages
- how to organize my categories or should I do custom post types for some?
- Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category
- Can’t Get Parent and Child Categories of Custom Taxonomy to Display
- Query for specific taxonomy that executes a particular loop depending on volume of posts?
- How to divide Subcategories into pages of parent category wordpress
- set object terms after some some time of published post – functions.php
- Sort custom posts by date and then by taxonomy
- How to display custom taxonomy term specific post?
- How to search through all child taxonomies using WP_Query?
- WP_query sort by taxonomy
- Custom Taxonomy – fields
- CPT Loop, include taxonomies and disclude others?
- Custom post types not displaying per category
- Only show current category post
- Dropdown switching subcategories portfolio
- Custom post type and custom taxonomies display
- How to pass taxonomy terms to WP_Query along with $args?
- Display custom Taxonomies same as listing Categories
- WordPress custom post type
- Custom Taxonomy Query by Taxonomny not working
- Storing/querying custom date data
- WP Query Post Type with same Taxonomy name
- Category / Custom Post Type permalink issue
- Get all custom_post_type posts + blog posts from one category in a single query
- WP Query Conditionally query meta and taxonomy
- WP Query – Can’t get posts with specific taxonomy