[SOLVED] This do the Job:
function set_the_terms_in_order ( $terms, $id, $taxonomy ) {
$terms = wp_cache_get( $id, "{$taxonomy}_relationships_sorted" );
if ( false === $terms ) {
$terms = wp_get_object_terms( $id, $taxonomy, array( 'orderby' => 'term_order' ) );
wp_cache_add($id, $terms, $taxonomy . '_relationships_sorted');
}
return $terms;
}
add_filter( 'get_the_terms', 'set_the_terms_in_order' , 10, 4 );
function do_the_terms_in_order () {
global $wp_taxonomies; //fixed missing semicolon
// the following relates to tags, but you can add more lines like this for any taxonomy
$wp_taxonomies['post_tag']->sort = true;
$wp_taxonomies['post_tag']->args = array( 'orderby' => 'term_order' );
}
add_action( 'init', 'do_the_terms_in_order');
Credit goes here: Change order of Custom Taxonomy List
Related Posts:
- Custom Taxonomy Template Post List with Sort Order
- Targeting categories in custom fields
- How to display posttypes and taxonomy in standard posts, not in a separate label?
- Category display using conditions
- How to get all taxonomies of a post type?
- Advanced search form with filters for custom taxonomies and custom fields
- How to Add Custom Fields to a Custom Post Type?
- Saving Taxonomy Terms
- Get Posts by Custom Post Type ,Taxonomy, and Term
- Custom Taxonomy as checkbox or dropdown
- Taxonomy: Why ‘with_front’ => false DOES NOT WORK?
- How do I append multiple taxonomies to the URL?
- Custom Taxonomy as Dropdown in admin
- Custom Taxonomy’s Label to change the text appearing in Appearance > Menu
- How to completely disable a taxonomy archive on the frontend?
- How to limit the number of terms (terms acts like categories)
- Custom Post Type – Taxonomy Dropdown Menu?
- How can I list all the categories under a Custom Post Type (taxonomy)?
- What should I use – Taxonomies, custom fields, Post Type?
- Custom taxonomy not showing up when adding a new custom post type
- How do I list custom taxonomy terms without the links?
- How to list custom taxonomy categories?
- clients list using wordpress
- wp_insert_term doesn’t work with custom post type’s taxonomy
- How to list all categories and tags in a page?
- Creating Photo Gallery System with Custom Post Type
- Retrieve single term slug
- Taxonomy archives based on Custom Post Type
- Create an archive page for custom taxonomies
- How to do a custom bookmarks post type?
- Get the ‘slug’ of a custom taxonomy
- WordPress Search documentation: how to improve search query using taxonomy terms, custom meta fields?
- Custom Metabox with Taxonomy Dropdown – Saving Issue
- How to select one major category (or custom taxonomy) for a custom post type?
- How to show term-specific post list, without posts associated with child terms?
- Custom Post Type with Custom Title
- How to get the parent’s taxonomy?
- Query multiple taxonomy in Custom Post Type
- Automatically assign a custom post to a custom taxonomy based on custom field value
- Custom Taxonomy order by Custom Field
- Include custom post type in “all posts”
- How do I list terms of a custom taxonomy at i.e. domain.com/brands/
- front end radio custom taxonomy with custom post type
- wp_insert_post custom taxonomy
- Add Taxonomy Values Within a Custom Post Type RSS Feed
- Custom Post Type: How to display all of same taxonomy?
- Taxonomy-{taxnonomy}.php is not working
- Display taxonomy term only if there’s a value
- Remove “-2” from a Toolset Types URL with the same post name
- Get list of terms of current taxonomy archive for another taxonomy
- Is there any performance consideration when using Custom Post Types?
- Custom post type / custom fields
- Get all taxonomies for all post types
- Custom post type taxonomy template
- Is slug “type” reserved and can’t be used in taxonomy rewrite?
- Associate Taxonomies Across Post Types
- Use the_taxonomies() to create a simple list
- What is better: Custom Fields vs Custom Taxonomies with Terms for perfomance, scalability and better user experience
- How loop through posts based on custom fields
- Listing taxonomies from custom post type
- How to add custom fields to admin UI and REST API response?
- Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?
- Get Custom Field Values by Another Custom Field in WordPress
- Taxonomy Templates
- Custom Post Type and Taxonomy combination
- Show Post Count of a Category
- Assign Taxonomy Based on Custom Field Value
- Custom Taxonomy Creates Unwanted Integer Terms on Post Save
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Custom Posts Hierarchy? (State/City/Restaurant)
- Automatically populate a hierarchical taxonomy from a custom field
- Relationship between two taxonomies and a custom post type [closed]
- Menu Multiple Taxonomies
- wp_query to find posts by year and month
- How to make a custom taxonomy selectable in post publish area?
- Problem with custom post types, taxonomy and permalinks
- How to create new category for custom post type?
- Fetch taxonomies by custom post type id array
- How to check the terms in single custom post type template
- get_terms showing all categories instead of the ones assigned to a specific post
- How can I move a custom taxonomy and its data from one post type to another?
- Conditional regex in add_rewrite_rule() for specific query filters & pagination
- Custom page template for category taxonomy
- Query Multiple Taxominies Across Multiple Post type’s
- How do I get array of types associated with a taxonomy?
- wp_set_object_terms() not adding new term to custom post and custom taxonomy
- Display all posts in main category and 1 subcategory
- How to bulk copy custom fields between custom posts?
- wp_get_post_terms on custom post type with custom taxonomies returning an empty array
- Retrieve value of a category’s custom field
- wp_query check if integer exists in custom field’s array
- Custom Taxonomies not appearing in Admin
- Custom Post Type Taxonomy Filters
- search also in taxonomy, tags and custom fields
- Categories of custom taxonomy don’t show any posts
- How to display custom taxonomies with links in filter menu?
- Custom Taxonomy back-end customizations
- How do I associate a custom post type with another through a taxonomy or storing an ID in a custom field?
- Taxonomy custom post type URL
- How to Filter custom post type by taxonomy?