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_terms by custom post type
- Get the first post term
- AJAX search on post pages by custom post type
- Creating “static” taxonomies to choose from, inside custom post type?
- How do I dynamically populate wp_nav_menu from a custom taxonomy?
- Select All in Parent Category, Group by Child Category?
- get_query_var() not working in pre_get_posts
- WP_Query ignores post_type in category view
- Filtering a WP_Query meta_query by numeric values isn’t working
- “pagination” (but not really) and queries using custom posts types
- Pre_get_posts Gives 404 on Custom Post Type
- How can you make permalink work for custom post type and taxonomy?
- Sorting a list of posts displayed under a list of associated terms (which should be sorted without initial articles)
- How do I list terms of a custom taxonomy at i.e. domain.com/brands/
- Query for posts from any post type but only add instock products
- Query not returning CPT posts
- Taxonomy-{taxnonomy}.php is not working
- Custom Taxonomy and tax_query Issue?
- Get list of terms of current taxonomy archive for another taxonomy
- Unable to display multiple post types in same query (WPML WP_Query)
- WP_Query with custom post_type and cat retrieving unwanted posts with the custom posts
- Query to get the author who having maximum number of post (custom post type)
- Pagination not working
- How to use custom post type APIs, but use a different db table
- Display all Posts and only certain Custom Post Types with meta fields
- Select menu should display categories and the item’s depth
- Custom Post Order for a Custom Post Type
- Why does using WP_Query inside a shortcode in an elementor page cause the arguments for WP_Query to get malformed?
- Lists Posts from CPT that match the Title of the Page
- Menu Multiple Taxonomies
- Filtering by Post Meta Custom Fields – Performance
- How to make a custom taxonomy selectable in post publish area?
- WP Query—Relationship between two custom post types and their fields
- Unable to get paginate_links working with a custom query [duplicate]
- Create Custom Post Type Permalink Structure
- Custom page template for category taxonomy
- How can I display an archive of only one category of my custom post type?
- How do I get array of types associated with a taxonomy?
- Setting proper query for multiple custom admin filters
- Display all posts in main category and 1 subcategory
- Returning a list of custom post types excluding those without a specific meta_value
- query private custom post type
- Show category ID on custom post type
- wp_get_post_terms on custom post type with custom taxonomies returning an empty array
- Query custom post type with tags
- Randomize Posts. Skip the first post in ascending order
- Pagination for Custom Taxonomy Page [duplicate]
- Custom loop with multiple taxonomy queries
- Isotope Filtering with Bootstrap Tabs – Custom Post Type Query Loop in each Tab (Have to click twice to filter)
- Custom taxonomy rewrite give pagination 404
- WP_Query order by custom field, then randomly order some of results
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- creat filter with wp_query
- How to do WP_Query with two meta fields with orderby clause
- Get Posts by multiple custom fields is not working
- Custom query at top of archive search page, arguments are overridden
- How to display post list inside post
- How to have this permalink structure: post_type/postname/custom_inner_page
- Sort entries by date mixing two post types
- Display latest x posts from all categories in Custom Post Type/Taxonomy
- Output terms for custom post types
- WP_Query – How To Query Only Custom Posts With No Children of Their Own?
- Foreach result into WP_query
- How to transfer categories (default) to custom taxonomy?
- Display posts on parent post if author coincides
- How to show post which has the specific taxonomy terms?
- How to get Current week and current date record wp query
- Error in WP Query. If variable is empty it is displaying previous post value
- Modify shortcode to work with custom taxonomies and slugs
- using post_type with meta_query
- WP Query Post Type with same Taxonomy name