You can use tax_query for this purpose.
$the_query = new WP_Query( array(
'post_type' => 'offices',
'tax_query' => array(
array (
'taxonomy' => 'europe',
'field' => 'slug',
'terms' => 'germany',
)
),
) );
You can also use more then one term in this query.
Related Posts:
- Remove Custom Taxonomy Metabox from Custom Post Type Screen
- Get terms by taxonomy AND post_type
- How to get the posts of a custom taxonomy term
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Get Custom Taxonomy ID within loop
- Custom Post Types not showing on Custom Taxonomy archive page
- custom post type or taxonomy
- Remove Trash / Delete option for Custom Post Type / Taxonomy
- How to filter custom post types by custom category taxonomy
- Highlight menu item when on a custom post type?
- remove support for ‘Categories’ for a custom post type
- How to setup a Custom Taxonomy Term template
- Admin to user notices – best practices?
- How to select one major category (or custom taxonomy) for a custom post type?
- Custom taxonomy & post slug permalink
- Retrieve a specific field from taxonomy term through advanced custom fields [closed]
- Custom Taxonomy List links being re-written
- front end radio custom taxonomy with custom post type
- Child and grandchild taxonomy listings – 404
- Limit taxonomy results to a single cpt
- Bulk 301 redirect for custom post type
- Automatically Add a Category to a Custom Post Type
- Associate Taxonomies Across Post Types
- Custom Permalink Tag breaks Pagination
- ‘category__and’ for custom taxonomy?
- Custom post query by taxonomy
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- Relationship between two taxonomies and a custom post type [closed]
- Sharing a custom taxonomy with Multiple custom post types
- next_post_link on custom taxonomy
- Show Two custom Post type and their posts on category page
- Group custom posts by custom taxonomy names
- Change Permalink Structure for Tag.php template
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- CPT UI change custom taxonomy url
- Get post from custom post type order by two taxonomies
- How to convert custom post type based list to a dropdown list?
- Show posts from two or more custom taxonomy terms
- Custom Taxonomy Archives on Custom Post type Page [duplicate]
- How can I make the slug of the taxonomy also the slug of the custom post
- Listing posts under primary and secondary taxonomies
- How to list custom taxonomies in the back end
- How do I display the grand child items of a taxonomy term?
- Is it better to use WordPress Custom Post Types or Taxonomies?
- How to get custom posts sub category link
- Top Level pages in wordpress giving 404, but child pages working fine
- Search by tag name and category
- Query posts with double taxonomy
- get_the_title() is returning results from previous loop
- How do I display a list showing custom post types nested within a taxonomy?
- Creating two loops based on different logic
- get_category_link() for custom post type does not include custom slug rewrite?
- category list with cutom post count
- How to show all taxonomies within custom post type loop
- Showing taxonomy terms on custom post type
- Custom Search | check multiple meta_value for search value
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- Show category and tag link as a submenu under custom post type submenu
- Changing CPT slug and taxonomy already registered in parent theme
- Show post count number assigned to custom taxonomy
- Get Terms from Custom Taxonomy and Current Post
- Add the custom post term to the custom post title
- Display 3 recent posts from one taxonomy
- Display next 3 posts based on custom taxonomy
- Check when the post type changes, and display content
- Loop and add Specific Categories and Products Images
- custom post archive URL is wrong
- Display latest post of taxonomy
- Custom Post Type with Different Sets of Post Content?
- Custom post type and multi taxonomies + customize url
- Add a class to a div if custom post type has specific terms?
- Custom post type paging return home page
- In child theme, add CPT to custom taxonomy registered in parent theme
- Custom taxonomies not displaying in some custom posts
- Custom taxonomy returns 404 even with saving permalinks
- WordPress Custom Taxonomy – If not parent term
- Static Front Page not working for custom theme
- WP_Query to display number of custom post type filtered (order by) taxonomy
- Custom post type shortcode with taxonomy attribute not working and no errors
- Live search by custom tag
- Set a Default CPT taxonomy by taxonomy id
- Custom taxonomy terms registered not showing when added in child theme
- Loop to display parent categories in custom taxonomy
- Custom post edit page permalink links to edit page rather than the post
- Not Able to List CPT Based on Taxonomy Term
- Show tags of custom post types in WordPress
- Filter Term By Parent Term – Custom Post Type
- Display all Custom taxonomy terms and their relevant custom posts
- Best way to group posts based on custom post type terms
- Query Pulling the same post twice
- redirect old post type url to new structure url
- Render custom taxonomy query as single template
- Custom meta-box for all custom post types
- Display and Allow users to edit their own profiles
- Remove custom taxonomy ‘post-type’ from post URL
- Building a List of Posts grouped by custom taxonomy as the section header only to be displayed if at least one post is in that tax
- Custom My account page and custom page for editing posts
- Listing all custom post types using a specific term on the said term’s template page, in groups
- Require Custom Taxonomy for Custom Type
- 404 Error On Custom Taxonomy Pages 2, 3, etc