Another perspective.
Instead of using the two custom-post-type ‘team’ and ‘player’. You can use them as a single custom-post-type ‘participant’.
Participant itself is a hierarchical post type, teams as the first level and player as it’s child. That way there wouldn’t be a player with more than 1 teams.
If you are doing your own theme, you can make a conditional, checking if($post->post_parent)
The custom-post-type can be assigned to a ‘competition’ taxonomy, preferably not hierarchical.
Hope this help
Related Posts:
- Query multiple taxonomy in Custom Post Type
- Custom Search | Wrong output & question
- Get the most popular terms for a custom post type
- Custom Post type is being ignored in query
- Order By Post Type ThenBy Taxonomy
- Custom query to filter posts that have current post as a taxonomy [closed]
- WP_Query orderby and tax_query
- Organize WordPress site, so it can maintain with huge database
- Shortcode to return single custom post based on post taxonomy
- Custom taxonomy query showing more than 4 posts
- Does this archive template part look like its making too many calls to the db?
- How select query is generated in a Custom Post Type?
- WP_Query for custom taxonomies showing posts from non-specified terms?
- Changing an item in drop down after 5 latest posts per taxonomy
- WordPress Admin Page Slow. Customer Post Type is the slowest
- Delete all posts of a custom post type—efficiently
- Random post, once per day
- Query custom post type by custom field
- Custom taxonomy not showing up when adding a new custom post type
- How to list all categories and tags in a page?
- show tags of custom post type ONLY
- Create an archive page for custom taxonomies
- Taxonomy terms with edit/filter link in wp-admin, in the list of custom posts
- Internationalize / translate custom post types & taxonomies
- Rewrite custom post & taxonomy to share same URL path
- Add Taxonomy Values Within a Custom Post Type RSS Feed
- Associate Taxonomies Across Post Types
- Having trouble with custom date field for CPT query (WordPress)
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Relationship between two taxonomies and a custom post type [closed]
- Show Two custom Post type and their posts on category page
- Ignore sticky posts if post is not in meta query
- WordPress post count not showing for custom post type author
- Have a Custom Post Type index page display taxonomy items instead of posts
- Use get_post_types to query only custom posts types
- How to get the post type from a category id?
- Adding custom tables to WordPress
- Hide specific parent categories from post edit
- Metadata for a taxonomy – is there any WordPress way of doing this?
- Search / Filter posts on Title/Content OR Tags
- Using default WP menu functionality to link to custom post-type listing?
- How to display custom taxonomies with links in filter menu?
- How to Filter custom post type by taxonomy?
- Show child custom post types list inside single parent custom post type
- Several post types on WP Query by tag and taxonomy
- How do I display the grand child items of a taxonomy term?
- Is it better to use WordPress Custom Post Types or Taxonomies?
- What’s the equivalent of Hide From Menus on MODX on WordPress?
- Custom post type posts don’t show in archive widget
- Showing specific post in order of array wp_query
- Custom query for custom post_type
- Adding custom field values to wp_list_pages
- Custom Taxonomy Is Being Pulled into a Page, But It Doesn’t Have A Hyperlink
- Querying two taxonomies with tax_query not woking
- Dump custom post type database
- Invalid Taxonomy
- Can I query posts by taxonomy conditionally based on post type?
- Custom Post Types not queried in Custom Taxonomy archives or Native archives
- Remove categories taxonomy from custom post type
- Break up posts per page in two sections
- Querying a custom post type, but not show duplicates
- Changing CPT slug and taxonomy already registered in parent theme
- Function to limit number of custom post types on homepage – TwentyTen
- Using custom post types WordPress network
- Add custom post type to query
- Menu for taxonomies and posts belongs to taxonomy
- How to automatically create a terms based on each post of a post type
- WP Query from two Custom Post type fields as statement
- when looping through custom post data not appearing
- Custom taxonomy returns 404 even with saving permalinks
- Creating a custom WP query for a Custom Post Type
- Create custom post type categories
- Set a Default CPT taxonomy by taxonomy id
- how to create custom taxonomy drop downs for parents and child
- Get name CPT with slug taxonomy
- Confused about where to store my data
- Add other all taxonomies as meta boxes to custom post type
- How to get post type archive category title
- Automatically / dynamically populating tags in custom post type
- Posts show up under “published” but not “all”
- How to create groups like that in buddypress?
- Organising custom taxonomies and custom post types
- pagination for a custom query
- Filter Term By Parent Term – Custom Post Type
- CPT or Custom Table for Repository of Serial Numbers
- get children from current variable (taxonomy) via shortcode
- Query Pulling the same post twice
- Use Tags to Query Associated Multiple Posts and Get The Average Of Custom Field Values
- $post breaking container loop
- List all posts from custom post type by taxonomy
- Pagination in custom loop for custom post type throwing 404 error
- 404 for children in hierarchical custom post type
- Filter CPT based on meta box value using Flexible Posts widget?
- $wpdb returns no results with SELECT query on custom post type, works on default post type
- Checking for published posts in a certain post type
- How to grab data (titles, thumbnails and custom fields) from multiple posts to populate a new array efficiently?
- Filter Custom post type by another Custom post type
- Get all active posts that are tied to a custom taxonomy for a custom post type
- Is there a function that replace category name with a icon?
- Show custom category archive as front page and remove taxonomy slug from urls