[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?
- How to get all taxonomies of a post type?
- How to Add Custom Fields to a Custom 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
- How to list all categories and tags in a page?
- Create an archive page for custom taxonomies
- How to do a custom bookmarks post type?
- WordPress Search documentation: how to improve search query using taxonomy terms, custom meta fields?
- How to select one major category (or custom taxonomy) for a custom post type?
- 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
- Taxonomy-{taxnonomy}.php is not working
- Display taxonomy term only if there’s a value
- Get list of terms of current taxonomy archive for another taxonomy
- Associate Taxonomies Across Post Types
- What is better: Custom Fields vs Custom Taxonomies with Terms for perfomance, scalability and better user experience
- How to add custom fields to admin UI and REST API response?
- Show Post Count of a Category
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Relationship between two taxonomies and a custom post type [closed]
- Menu Multiple Taxonomies
- 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
- Custom page template for category taxonomy
- 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
- Categories of custom taxonomy don’t show any posts
- How to display custom taxonomies with links in filter menu?
- 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?
- Display a grid of taxonomy terms at root taxonomy page
- limit value taxonomy based on previous taxonomy value wordpress
- How do I display the grand child items of a taxonomy term?
- Is it better to use WordPress Custom Post Types or Taxonomies?
- How to make custom taxonomy into drop down select in a custom metabox
- Rename a slug label
- Get Post Terms of Current Post (selected taxonomy term) – How to get only the taxonomy value and not “Array ( [0] => taxonomy term )” in the frontend?
- Custom taxonomy (categories) on custom post type return no results
- Many to many to many custom post relationships
- Rewrite custom post type with taxonomy
- WordPress multisite – is it possible to have different taxonomies for each site?
- My custom taxonomy is only displaying 1 of 3 terms
- How to show list of taxonomy terms associated with specific post?
- Reusable metabox backend and frontend
- I have custom post type with custom taxonomy. But not found the taxonomy page..
- Group Custom post type in a taxonomy page by its child taxomony
- Getting List of child terms from custom taxonomy parent
- Get A Custom Field From A Custom Taxonomy Of A Custom Post Type [closed]
- Custom post types category
- Custom taxonomy query showing more than 4 posts
- Using page title as a link to term archive
- Custom Taxonomy dont save in a frontend form for post a custom post
- Should i use custom post type for a custom footer?
- How do I ensure that post_type and Taxonomy use the same slug?
- How to get post count of specific taxonomy that have store name & category
- Custom taxonomy terms as children of multiple custom post types
- Duplicate slug/permalink issue while adding same post name
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- Get the taxonomy value in the post loop inside the archive page
- How to show related posts of category on post within custom posttype
- wp_set_object_terms creates taxonomies but does not add custom posts to it
- Display Custom Field or Custom Taxonomy in front page /post/product
- WP_Query for custom taxonomies showing posts from non-specified terms?
- PHP Warning with Custom Fields
- Get all posts for custom taxonomy term
- Listing all custom posts having a specific taxonomy whatever the terms
- Display custom tax in “while” loop
- tax_query not working?
- Showing taxonomies with terms that are attached to custom post
- Custom Taxonomy page redirecting to 404 page
- Connect 8 Taxonomies to One (Main) taxonomy. How to?
- Filter By Term Not Working – Custom Post Type
- Displaying WordPress posts from post and custom post type in custom taxonomy
- Custom post type taxonomy template and URL confusion
- Custom Taxonomy is disabled on Edit page
- Override “Parent” input for custom taxonomy
- custom taxonomies are not showing up in get_taxonomies
- Check if taxonomy is attached to at least one post in a post-type
- Looping taxonomy in taxonomy?
- Custom posts and custom taxonomies for many products and categories?
- List custom taxonomy terms
- How do i get the taxonomy term name on the CPT archive page?
- Custom Post type as Taxonomy
- pre_get_posts causes Custom Posts appear under ‘Pages’ menu
- Taxonomy listing issue – does not display how I would like
- Show custom category archive as front page and remove taxonomy slug from urls
- WP_Query not using relation key as expected and not producing any results