If you read http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters in detail it outlines everything you need. Take a look at the following code sample taken from the codex. It should help you
$args = array(
'post_type' => 'Article', /* This is where you should put your Post Type */
'tax_query' => array(
array(
'taxonomy' => 'people',
'field' => 'slug',
'terms' => 'bob'
)
)
);
$query = new WP_Query( $args );
Please note that this query does NOT account for paginated data.
Related Posts:
- How do I query a custom post type with a custom taxonomy?
- how to group custom post type posts by custom taxonomy terms
- Posts per Page on custom Taxonomy Template
- How to get the parent’s taxonomy?
- Query posts by custom post type and custom taxonomy
- How to get only one category of custom post type?
- pre get posts changing the query
- Query for posts in 2 taxonomies
- ‘category__and’ for custom taxonomy?
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- How to dynamically build a multiple taxonomy query loop within a post type’s single loop?
- List custom post type by custom tax term as page title
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- Query/list all terms and their custom post count
- Archive for custom taxonomy lists all posts instead of current taxonomy
- How to use custom taxonomies to reference complex relationships?
- Query Custom posts of same taxonomy as the post itself
- Conditional Query of Custom Post Type and custom taxonomy
- Show a Category X’s custom post type on Category X archive page?
- How to edit this code to get the categories in achieve page?
- Listing all term items alphabetically / sorting loop
- How to display Related Posts based on number of taxonomy terms matched
- How to make WP_Query not to show irrelevant posts?
- Custom query – get_the_terms not work
- Control content before and after custom post type loop
- Custom post type, custom taxonomy, query posts only from taxonomy (children of)
- Display custom posts randomly in custom taxonomy archive
- Not able to export large no. of posts in csv
- attach CPT data to a taxonomy
- Targeting custom post type via functions.php doesn’t work
- List all posts in taxonomy term
- Query Multiple Custom Post Types & Exclude a Taxonomy Term
- Sorting the Loop by Taxonomy Value
- custom post type and a “sticky” position taxonomy
- Posts per Page on custom Taxonomy Template
- Getting Custom Posts with Custom Taxonomy
- WordPress custom post type
- Display 2nd category, only once, as sub-heading, in the loop
- Advanced Custom Fields: query posts filtered by multiple field values
- Inserting two categories
- Display all posts in a custom post type, grouped by a custom taxonomy
- Display a query with multiple post types and same relationship on a single page
- Ordering Posts List By Taxonomy Terms?
- post count is wrong when using same taxonomy for 2 different CPT
- Issues when rewrite rules collide?
- Add links to post categories and taxonomies in wysiwyg link modal?
- Custom post type archive with dynamic taxonomy filtering – is it possible
- Multiple Archive Pages for Custom Post Types AND Taxonomies
- Custom Taxonomy Breadcrumb Navigation
- Exclude current post when getting related post on custom post type and taxonomy
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- Is it possible to make tag archive page specific to Custom Post Type?
- reference the current category being used in the category.php page
- Multiple portfolios with one custom post type?
- Custom Post Type and Taxonomy combination
- Taxonomy.php Not Showing Posts
- I can’t choose the custom taxonomy in my custom post type on Gutenberg
- Retrieve value of a category’s custom field
- Page template with different page and post content
- wp_list_categories() – current-cat class also inside posts?
- Showing the custom taxonomy parent term and child term of a post
- Custom post type url with category
- Adding custom post category slug in permalink causes 404 error for pages and posts
- Taxonomies don’t show up on in the dashboard page for a custom post type in wordpress 5.22
- Custom taxonomy rewrite with query var returns %2F in URL
- Remove slug in URL custom post type
- Taxonomies relations
- Adding custom taxonomy in same menu place with two custom post types
- Displaying custom-taxonomy-terms sorted by parent/child-hierarchy?
- Template files for Custom Post Type and Taxonomy
- WordPress menu with custom taxonomy
- Creating a non-hierarchical Taxonomy that behaves like categories
- How to get xml file for a single post type?
- How to change single custom post template by custom taxonomy?
- How to query Posts from a custom post type which contains a custom taxonomy?
- Problem retrieving informations and displaying desired structure with custom post type and taxonomy
- How do I ensure that post_type and Taxonomy use the same slug?
- WordPress CPT Taxonomy Dashboard Search – How to include taxonomy in search?
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- Not saving custom taxonomy while using ajax
- Dynamic template page calling shared taxonomies CPT or Plugin post type : how to clone taxonomy for plugin + set up dynamic shortcode
- Post Tags not working for Custom Post type
- 404 – Taxonomy Archive Page
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- Custom taxonomy with custom post type archive page
- Multiple non-hierarchical custom taxonomies frequently used terms showing up in first selected taxonomy box
- Custom URL for Custom Post Type & Custom Taxonomy Term
- I want to create pagination for my custom post type archive that i am displaying with loop
- Showing taxonomies with terms that are attached to custom post
- Saving Child Terms on front end not setting parent
- Help with Travel Guide Setup
- Displaying WordPress posts from post and custom post type in custom taxonomy
- Custom post type taxonomy template and URL confusion
- Optimise custom post type queries
- Loop with Custom Post Type and Taxonomies
- WordPress Custom Post Type and sort by Tags
- Custom taxonomy labels won’t display
- Query custom type posts by array of IDs
- Custom post type with custom taxonomy
- Taxonomy Archive URL + Template