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
- Custom Taxonomy back-end customizations
- Meta query for custom post type ignored in main query
- Taxonomy custom post type URL
- Querying Two Custom Post Types with OR Not Working
- How do I move/order posts with a tag to the end?
- How to build custom route by adding taxonomies to URL ? ex: www.demo.com/communities/palo-alto/
- How to Filter custom post type by taxonomy?
- Is it possible to have dedicated page for parent/child taxonomy?
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- Database to page routing API?
- Custom post taxonomies as tax_query terms?
- Get related posts of child term of custom post type
- Limit amount of posts made within a custom taxonomy
- Issue on Creating Custom Tax Term Dynamically From Another CPT Meta-box On Publish
- creat filter with wp_query
- Store CPT ‘Reviews’ average ratings to a WordPress DB table or to a DB custom table?
- list taxonomies from a custom post type
- Display a grid of taxonomy terms at root taxonomy page
- Specific query for custom post type
- Show child custom post types list inside single parent custom post type
- limit value taxonomy based on previous taxonomy value wordpress
- How to change wp prefix for custom post type only?
- Several post types on WP Query by tag and taxonomy
- Using meta_query and tax_query at the same time
- How do I display the taxonomy for a custom post type in an array
- Set a CPT slug as a base name for all the taxonomies
- How to conditionally redirect to the post from a taxonomy page?
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- How do I display the grand child items of a taxonomy term?
- Taxonomies relations
- Is it better to use WordPress Custom Post Types or Taxonomies?
- Is it possible to store Custom Post Type data in separate set of tables and still have wp_post class functionality?
- Full Custom Post Type List Organised by two Taxonomies
- Add update or delete database records using custom post type
- WordPress Doesn’t Generate Taxonomy Archive
- How to import a custom MySQL DB table into a WordPress custom post type
- Suggested Post and Taxonomy structure
- Display post content with respect to its title?
- First custom field value (out of several) displayed twice after query
- Custom post with more than one custom taxonomy
- Prioritize posts in query by meta keys?
- Get the taxonomy of a post hierarchically
- Adding custom taxonomy in same menu place with two custom post types
- How to make custom taxonomy into drop down select in a custom metabox
- Multiple pages for posts?
- What’s the equivalent of Hide From Menus on MODX on WordPress?
- Display latest x posts from all categories in Custom Post Type/Taxonomy
- How to get list of taxonomy slugs ordered parents>childs?
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- Displaying Posts from Custom Post Types
- Different Ways to Query Custom Post Types?
- Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms
- How do I share categories across multiple post types?
- How to organize hierarchical structure in custom post type with taxonomy (like with categories)
- Multiple tag cloud filtering
- Get url.com/post_type/taxonomy/term work!
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- Importing Data from a Non-WordPress database, into WP
- Taxonomy in URL
- Review site custom post type structure
- Filter get_cat_id for Custom Post Type
- Save custom post type to external database
- Different Category system needed for the Custom Post Type
- Custom post type posts don’t show in archive widget
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Output terms for custom post types
- Showing specific post in order of array wp_query
- Linking from CPT page to taxonomy.php
- Page not found for custom post type UI plugin and taxonomy
- Show data from one Custom Post Type in another Custom Post Type
- Unable to link categories to custom post type using standard function
- How to Set Taxonomy Object Description?
- Categories and tags for custom post types
- Custom select query for taxonomies that have posts categorized in another taxonomy
- Number of posts in the archive
- Query of custom post types only shows first post
- Custom query for custom post_type
- Adding custom field values to wp_list_pages
- Query multiple taxonomies with pre get posts
- Enable taxonomies by post type in an array of CPTs
- How to query 2 custom post types that need to share a slug?
- How to assign tag to custom post type in wordpress?
- Custom Taxonomy Is Being Pulled into a Page, But It Doesn’t Have A Hyperlink
- Querying two taxonomies with tax_query not woking