Is there a way to handle this unique
ordering for each term in the
taxonomy?
You can use custom fields to store the order of the players (e.g.: team_order, league_order, position_order). And dynamically modify the order in your index, archive or taxonomy template file (whatever you use):
if( is_tax(array('team','league','position')) ) {
if( is_tax('team') {
$wp_query->set('meta_key', 'team_order');
} elseif( is_tax('league') {
$wp_query->set('meta_key', 'league_order');
} elseif( is_tax('position') {
$wp_query->set('meta_key', 'position_order');
}
$wp_query->set('orderby', 'meta_value');
$wp_query->get_posts();
}
Additionally, is there a way to add
multiple custom fields for a taxonomy
(ex: team, which contains a team name,
logo, description, and coach)?
No way, out of the box, You can store this in a custom post type or the options table.
Related Posts:
- Display all posts in a custom post type, grouped by a custom taxonomy
- What are the differences between custom post type and custom page templates?
- Ordering Posts List By Taxonomy Terms?
- Templates for Custom Post Types and Custom Taxonomies
- 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?
- SQL to update custom post taxonomies
- Need help with complex custom post type setup
- Randomly placed sticky custom posts complemented by blog posts
- Custom Post Type/ Taxonomy URL rewrite
- Adding Custom Taxonomy to WordPress default Post type
- Use the_taxonomies() to create a simple list
- Hierarchical Custom Post Types or Similar
- Programmatically adding posts
- Keep main articles and author blogs seprerate, News / Magazine like site
- How to create an advanced filter search?
- What is the use of a custom taxonomy?
- I can’t choose the custom taxonomy in my custom post type on Gutenberg
- Retrieve value of a category’s custom field
- How to save custom taxonomy from front end post submission
- wp_query check if integer exists in custom field’s array
- Custom-Posttype & Custom Taxonomy WP_Query
- wp_list_categories() – current-cat class also inside posts?
- Showing the custom taxonomy parent term and child term of a post
- Template for custom post with custom taxonomy
- 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
- list taxonomies from a custom post type
- WordPress custom taxonomy, posts urls
- Custom taxonomy rewrite with query var returns %2F in URL
- Remove slug in URL custom post type
- Taxonomies relations
- Import data from CSV with custom taxomony empty
- Custom Post Type Loop with Query Var
- Adding custom taxonomy in same menu place with two custom post types
- Template for all categories of a custom post type?
- Displaying custom-taxonomy-terms sorted by parent/child-hierarchy?
- How do I add a Custom Post Type that looks and behaves exactly the same as Posts?
- Template files for Custom Post Type and Taxonomy
- in_category for custom post types
- Custom Post type & Taxonomy 404
- WordPress menu with custom taxonomy
- attach CPT data to a taxonomy
- Listing all slugs?
- Custom Category Walker with Image, Fallback to Most Recent Post in Category Image
- Creating a non-hierarchical Taxonomy that behaves like categories
- Custom Post Type not showing in main loop
- My custom taxonomy is only displaying 1 of 3 terms
- 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?
- Archive page for custom post type and custom taxonomy
- How to Control CSS Class Visiblity From WordPress Admin Panel based on Tax Terms
- 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?
- Archive page of CPT’s custom Taxonomy
- WordPress CPT Taxonomy Dashboard Search – How to include taxonomy in search?
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- How to show related posts of category on post within custom posttype
- 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
- Display Custom Field or Custom Taxonomy in front page /post/product
- Some posts not displaying by taxonomy term
- WP_Query for custom taxonomies showing posts from non-specified terms?
- Custom search for a custom post type in WordPress
- 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
- Custom taxanomy and custom post type – pagination leads to 404
- Getting all custom post taxonomies and exhibiting only part of them
- Help with Travel Guide Setup
- Custome post type “tags” pick default archive instead of custom post type archive
- Displaying WordPress posts from post and custom post type in custom taxonomy
- Custom post type taxonomy template and URL confusion
- Custom post type AND custom taxonomy are not connected
- How can I add a “fake” parent into the permalink?
- Loop with Custom Post Type and Taxonomies
- Single page archive – get coresponding taxonomy and terms
- How to assign custom post template to its custom taxonomy terms
- Excluding top level from taxonomy and post loop
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- WordPress Custom Post Type and sort by Tags
- Displaying custom post types with taxonomy
- Using one custom taxonomy.php for two custom taxonomies?
- Add taxonomy to custom post type archive
- Custom taxonomy archive not showing posts of certain child taxonomies
- posting twice from an array?
- Custom taxonomy labels won’t display
- Custom post type with custom taxonomy
- How do i get the taxonomy term name on the CPT archive page?
- Dynamically count the number of custom post types associated to a custom taxonomy
- Taxonomy Archive URL + Template