The problem was in not reading documentation carefully enough 😉
As it stands in http://codex.wordpress.org/Class_Reference/WP_Query in ‘tax_query’ part, “tax_query takes an array of tax query arguments arrays” so the correct part of code would be:
$query_args = array(
'post_type' => 'portfolio-type',
'paged' => $paged,
'tax_query' => array(
array(
'taxonomy' => 'portfolio-category',
'field' => 'id',
'terms' => $CAT_ID
)
),
);
The missing array() in existing array() was a problem.
Thanks hakre :).
Related Posts:
- how to group custom post type posts by custom taxonomy terms
- How to get the parent’s taxonomy?
- Query for posts in 2 taxonomies
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Query/list all terms and their custom post count
- Archive for custom taxonomy lists all posts instead of current taxonomy
- How to display Related Posts based on number of taxonomy terms matched
- How to make WP_Query not to show irrelevant posts?
- Sorting the Loop by Taxonomy Value
- custom post type and a “sticky” position taxonomy
- WordPress custom post type
- Exclude a category from WP_Query
- get_query_var() not working in pre_get_posts
- query multiple taxonomies
- Custom Taxonomy with Custom Post Type Finds No Posts
- Custom query – alternate posts by category
- Posts per Page on custom Taxonomy Template
- Using Query Posts With Multiple Post Types And A Taxonomy
- Query posts by custom post type and custom taxonomy
- Sort the main query in subcategories/terms?
- Custom Taxonomy List links being re-written
- Query not returning CPT posts
- Want to filter only parent post in admin area
- Unable to display multiple post types in same query (WPML WP_Query)
- pre get posts changing the query
- Quickest way to get last or oldest post date – WP Query
- ‘category__and’ for custom taxonomy?
- Custom post query by taxonomy
- Querying CPT with Two Taxonomies
- Custom Query to display posts with custom field
- Get taxonomy description based on variable
- how can i get posts from custom post type particular taxonomy category
- 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
- Sorting multiple custom post types without a meta key/value pair by sort order
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- Display custom post type from dynamic custom field
- wp_query check if integer exists in custom field’s array
- Wrong request query on cpt and tax
- Pagination for Custom Taxonomy Page [duplicate]
- Search / Filter posts on Title/Content OR Tags
- Custom-Posttype & Custom Taxonomy WP_Query
- Custom loop with multiple taxonomy queries
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- What’s the WP way to load remaining custom posts?
- How to have this permalink structure: post_type/postname/custom_inner_page
- Query Custom Post Type Taxonomy term with multiple parameters
- pagination not working for category.php (custom post types in categories)
- Retrieve custom post types by custom taxonomies with WP_Query
- Custom Taxonomy Not Showing in Front-End When Outputting a Custom Post Type with WP_Query()
- Using page slug in wp_query
- Custom query – get_the_terms not work
- Custom taxonomy wp_query woes.
- Creating two loops based on different logic
- Control content before and after custom post type loop
- Display custom posts randomly in custom taxonomy archive
- WP_Query parameter conflict
- Not able to export large no. of posts in csv
- Pagination not working on custom query on a page
- Targeting custom post type via functions.php doesn’t work
- How to show all taxonomies within custom post type loop
- Query Posts that have Custom Taxonomy
- List all Custom Post Type posts excluding certain Taxnomy term
- Foreach loop returning more than one item when querying taxonomy
- Query Custom Post Type by Taxonomy
- Related “custom post type” using “custom taxonomy”
- Custom Query: Multiple CPTs and a taxonomy filter
- WP query_posts group by meta field related
- Ordering by meta value not working
- Custom wp-query display post only today
- Display post count for a specific month
- WP_Query to display number of custom post type filtered (order by) taxonomy
- Live search by custom tag
- Query a custom taxonomy in a function to create an csv file
- WP_Query based on ‘s’ and tax_queries
- Ajax load more inside custom post type taxonomy
- Create a custom wp_query from a specific custom post type with specific taxonomy
- The most recent post of custom taxonomy
- Problems with the WP_Query query for a Custom post type
- Display all Custom taxonomy terms and their relevant custom posts
- CPT Efficient way to display posts from different categories with custom query
- Query Pulling the same post twice
- Get posts associated with custom taxonomy alternate way
- display news with pictures 3 small and one large (loop)
- tax_query showing no results
- Post data in separate divs with incrementing class using WP_Query
- Values inside a custom field to determine which category posts to display
- Custom post type blog pagination conflict
- How to display elements of different post types?
- WP Query WordPress Post Type with the same Taxonomy name
- How to list groupings and keep pagination
- How to retrieve taxonomy terms of the current custom post?
- Listing all custom post types using a specific term on the said term’s template page, in groups
- How do I correctly query posts from a post ID?
- Attaching multiple custom taxonomies to one CPT?
- Quering array of post types & pagination. Articles are repeating sometimes on different pages
- WP Query Conditionally query meta and taxonomy
- WP Query – Can’t get posts with specific taxonomy