Please try this modification of your code:
$args = array(
'post_type' => 'immobili',
'tax_query' => array(
array(
'taxonomy' => 'immobili_categories',
'field' => 'slug',
'terms' => 'realizzazioni',
),
),
);
// The Query
$query = new WP_Query( $args );
Related Posts:
- Query Custom Post Type taxonomy type based on page
- How to get the parent’s taxonomy?
- Adding a term name from a custom taxonomy assigned to a post link displayed by a wp_query loop based on another taxonomy
- List all custom post type posts from a given category?
- Show Post Count of a Category
- tax_query returning all posts instead of selective posts in WP_Query
- Fetch taxonomies by custom post type id array
- Why does querying on post_tags (which has been applied to custom post types) only return posts?
- How to show CPTs in term archive
- Custom post taxonomies as tax_query terms?
- Several post types on WP Query by tag and taxonomy
- Variable not working in WP_Query
- Query all post and CPT from 2 specific taxonomies AND by ACF custom field
- Sort results without WP_QUERY?
- Running a custom query inside another cpt single and trying to grab a variable
- Get posts by category name
- wp_dropdown_pages with tax_query clause
- Query Custom Post Type by Taxonomy
- Page that lists publications by classifying them by taxonomy
- Display related CPT with custom taxonomy
- Filtering posts based on three taxonomies
- Display Custom Post Type Based on Taxonomy With WP_Query()
- WP_Query for custom taxonomies showing posts from non-specified terms?
- Custom Taxonomy – fields
- One of my headings is mysteriously coming up as a link in my CPT Archive
- Displaying WordPress posts from post and custom post type in custom taxonomy
- How to display elements of different post types?
- category_name not working in WP_Query
- How do I get parameters from the URL?
- Get post with multiple meta keys and value
- Get posts for custom post type with WP_Query
- Custom Taxonomy as Dropdown in admin
- Sorting a query by custom field date
- Enforcing canonical URLs with multiple custom post types
- How to set individual capabilities on a taxonomy? Or how to re-register an existing taxonomy?
- WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)
- how to group custom post type posts by custom taxonomy terms
- Include both default and Custom Post Type in query modified inside pre_get_posts
- Custom Post Type: How to display all of same taxonomy?
- How to query different post types in specific order?
- Exclude specific taxonomy term when using wp_get_post_terms
- Loop on front-page.php
- Querying Term Posts in Loop
- Can’t get order_by meta_value_num to work properly
- orderby in custom WP Query does not work
- Linking to the most recent post in a Custom Post Type
- How to make sure content doesn’t display if selection is empty
- Creating a navigation menu of all posts of a custom post type and their children posts?
- Wp_query: sort by PHP variable
- WP_Query most viewed posts, in multiple Post Types, last 30 days, excluding a specific taxonomy term
- How to organize hierarchical structure in custom post type with taxonomy (like with categories)
- Order posts by 2 custom fields and if one custom field is zero orderby another custom field
- WP Query post__in not returning correct results
- Proper way to display latest 5 posts grouped by post type?
- Detect inside a custom query the kind of post type to assign custom classes
- Rename a slug label
- get_pagination not working on a custom post type query (using WP_Query)
- WP_Query with custom post type ID
- Need help deciding on a taxonomy
- Get Posts by Category, Tag , and CPT Taxonomy
- Topic won’t save for a custom post type — how to debug?
- How to show list of taxonomy terms associated with specific post?
- Exclude latest post from WP_Query taxonomy term loop
- I have custom post type with custom taxonomy. But not found the taxonomy page..
- Custom Post Types – Taxonomy and Customization
- Display featured posts for a custom post type by taxonomy
- What is the most efficient way to execute recursive complex queries?
- date_query empty results with custom post type
- Duplicate slug/permalink issue while adding same post name
- conditional filter
- How best to structure multiple CPTs and tax within a ‘resources’ section
- Custom post type archive page filters
- Alike Shortcode using in Custom Shortcode
- display post count in archive page that have relation with another taxonomy term
- How can I sort the results of a REST API response by the title of a connected custom post type?
- Query when is one or several values
- get taxonomies from terms
- Use WP_query to match post types based on custom field values
- Post Filtered by Custom Field Value
- tax_query not working?
- Custom Taxonomy is disabled on Edit page
- Override “Parent” input for custom taxonomy
- Imported Content Doesnt Show Up On Frontend
- Loop carousel slider in wordpress
- Custom Post Type Categories Not Maintaining URL structure any more
- How to load more custom type posts through AJAX & LOAD MORE POSTS button
- Best way to structure article and issue relationship for CPT
- Pagination always adding “Next” link when results come from Custom Post Type WP_query
- Check if taxonomy is attached to at least one post in a post-type
- How to make an admin create/edit post page to look like taxonomy page?
- Looping taxonomy in taxonomy?
- 404 on Pages for Custom Post Type & Query_Posts
- Custom posts and custom taxonomies for many products and categories?
- Show Posts in Vertical Tabs with Scrollbar
- How to manage wordpress knowledge base/wiki/posts collections
- Is it possible to make is_category() recursive?
- Get X posts with the same terms as the current post (custom post type and custom taxonomy)
- How to add to taxonomies to a post type
- Filtering custom post types using category taxonomy
- custom taxonomy not return in the code