Going from memory this should work for posts
<?php $query1 = new WP_Query( array( "post_type" => "post", "tag" =>
$term->slug) ); ?>
The first query will only return posts that have been tagged [TEAMNAME] (as far as I can remember custom taxonomies can show up as tags on a post). This should work for teams
<?php $query2 = new WP_Query( array( "post_type" => "match", "team" => $term->slug) ); ?>
The second query will only returns matches with the custom taxonomy of [TEAMNAME]
Related Posts:
- Query for posts in 2 taxonomies
- Display all posts in a custom post type, grouped by a custom taxonomy
- Retrieving 3 latest post from each of 5 different custom post types
- how to group custom post type posts by custom taxonomy terms
- How to get the parent’s taxonomy?
- Should unaltered default loop/query return a list of custom posts belonging to a custom taxonomy?
- ‘category__and’ for custom taxonomy?
- How to dynamically build a multiple taxonomy query loop within a post type’s single loop?
- wp_query to find posts by year and month
- Custom Post Type Loop within Shortcode
- Filter by custom taxonomy slug on a custom post type
- Display CPT posts based on specific taxonomy
- Query/list all terms and their custom post count
- Archive for custom taxonomy lists all posts instead of current taxonomy
- Custom loop with multiple taxonomy queries
- Show a Category X’s custom post type on Category X archive page?
- What’s the WP way to load remaining custom posts?
- Listing all term items alphabetically / sorting loop
- pagination not working for category.php (custom post types in categories)
- How to display Related Posts based on number of taxonomy terms matched
- How to make WP_Query not to show irrelevant posts?
- Control content before and after custom post type loop
- Custom post type, custom taxonomy, query posts only from taxonomy (children of)
- Pagination not working on custom query on a page
- display posts of custom post type with custom taxonomy
- postsperpage value not being applied
- List all Custom Post Type posts excluding certain Taxnomy term
- Cant’ Display Custom Post Type Title Base on Tax Terms
- Loop for custom-post-type comparing taxonomy terms for “related” posts?
- Custom Post Type Query W/Category Dropdown
- Multiple custom post type queries causing wrong post types to be grabbed in taxonomy + single templates?
- Query for specific taxonomy that executes a particular loop depending on volume of posts?
- What is the most efficient way to execute recursive complex queries?
- Sorting the Loop by Taxonomy Value
- custom post type and a “sticky” position taxonomy
- WordPress custom post type
- Loop with Custom Post Type and Taxonomies
- display news with pictures 3 small and one large (loop)
- Post data in separate divs with incrementing class using WP_Query
- Catergory args causing loop not to show
- How do I correctly query posts from a post ID?
- display custom post type from register taxonomy
- How to exclude certain portfolios from a loop
- Complex Custom Loop with Includes
- Displaying Posts Related to Other Posts by a Taxonomy Term?
- Querying Posts by Taxonomy From Alternate Network Site
- WP_Query on custom post type not displaying, multiple loops & get_template_part
- How to create posts (not post template) to be displayed on projects page?
- WP_Query post at custom position
- 404 error PageNavi custom type taxonomy | wordpress
- Impossible to get Attachments Outside WordPress?
- Help Structuring Query for Archive Pages
- Is it possible to create a shortcode that will query a post based on taxonomies?
- Querying Term Posts in Loop
- get_template_part for each level of taxonomy term
- Query custom post type in the loop
- Very Slow Page – How to Optimize # of Queries?
- WordPress Genesis custom taxonomy archive shows 3 repeats of each post
- Get latest 3 posts from multiple CPT in one query
- Display all taxonomy terms, add class if term applies to current post
- Custom WP Query on custom meta and sort by multiple meta keys value
- WP Query with categories only shows one post and ignores the category
- Add Custom Post Type of specific Custom Taxonomy to regularly blog loop
- WP Query post__in not returning correct results
- Sort posts in loop by the WooCommerce Membership of the author
- WordPress wp_query() basic question about args
- How to get the post terms from a child taxonomy
- Custom Post Type and Taxonomy Loop Output Is Wrong
- Exclude latest post from WP_Query taxonomy term loop
- foreach loop inside the loop creating duplicates in output
- How to fetch posts that are stored in the different table than (default) wp_posts?
- WP_Query order custom post type with certain meta key value by post modified date
- How do i display post from a taxonomy term?
- Custom Post Types Not Showing Up In query_posts Result
- Custom Post Type ‘Event’: Chronological list of recurring events from meta_values in array
- How to search through all child taxonomies using WP_Query?
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- posts_per_page is not working by term
- Wrapping an unknown amount of posts inside separate HTML Containers during WP_Query loop
- minimize wp_query call to database
- % encoded URL giving 404 error in WordPress
- CPT: multiple loops with different terms
- sorting in wp query based on custom field value
- Why get_posts() returns empty array while I am trying to get posts from some specific taxonomies and work properly with others?
- WordPress loop add heading before first of type
- Only show current category post
- Looping through custom taxonomy in one template
- get_post_meta for Custom Post Type ( CPT )
- WordPress query posts by custom post type not workng
- Get posts of an specific term of a custom taxonomy
- WP_Query for CPT with filter by another WP_Query
- Is it possible to add query parameters on the archive page?
- How to query posts by meta keys AND under specific category?
- Shortcode display CPT Query only showing 1 post?
- How can I pull information from my loop and divide them seperately?
- Storing/querying custom date data
- Query Posts From Multiple Post Types
- Fallback if statement based on the number filtered from it
- send user to first page of results when reposting to page?
- show custom post’s post in two different divs [duplicate]