get_the_terms uses wp_get_object_terms with defaults, which is orderby name ascending. You can use wp_get_object_terms directly if you want to set arguments differently.
$args = array(
'orderby' => 'term_id'
);
$terms = wp_get_object_terms( get_the_ID(), 'category', $args );
Related Posts:
- get_terms by custom post type
- Get Posts by Custom Post Type ,Taxonomy, and Term
- Display current taxonomy term when inside custom post type
- Get term slug of current post
- How do I list custom taxonomy terms without the links?
- Get terms that contain posts that in turn belong to other terms?
- wp_insert_term doesn’t work with custom post type’s taxonomy
- wp_get_object_terms(): count relative to passed IDs?
- Count posts that have specific taxonomy term attached
- display multiple term post from taxonomy in a single page
- Custom Post Type Archive Template
- Maintaining strict one-to-one association between terms and custom posts
- If on term-page -> get the current term?
- Adding a term name from a custom taxonomy assigned to a post link displayed by a wp_query loop based on another taxonomy
- Get list of terms of current taxonomy archive for another taxonomy
- Get all taxonomies for all post types
- Dynamically create/remove terms in taxonomy when custom post type is published/trashed
- get_terms won’t display product_cat or any other custom taxonomies when specified
- How do I provide a “show all posts” link in a paginated term archive?
- How to filter the taxonomy terms based on another taxonomy term
- How to output wordpress custom tags separated by comma?
- get_the_terms return only last term
- Does WordPress limit the length of slug names for Post Meta or Terms?
- get_post_meta returns empty array for terms
- Custom Post Type Archive Page Filtering
- wp_insert_term in a multisite installation
- Get posts by querying taxonomy and certain terms of the taxonomy?
- Custom Post Type archive loop separated by term, in specific term order
- Display post as term id
- Post count by month of taxonmy term
- Display Custom Taxonomy Alphabetically
- Get terms that contain posts that in turn belong to other terms?
- Custom while loop for hierarchical display of a taxonomy
- Display latest x posts from all categories in Custom Post Type/Taxonomy
- Foreach inside shortcode not working as planned
- Displaying custom-taxonomy-terms sorted by parent/child-hierarchy?
- Targeting custom post type
- Query posts with double taxonomy
- Print current post category during WP_Query
- Adding predefined terms to a taxonomy
- Custom query – get_the_terms not work
- Shared terms between taxonomies
- Get_the_terms restrict output
- How to get dropdown instance value in WordPress custom Widget
- Get category if used in a custom post type
- Get taxonomy term by slug in post on archive page
- Is it possible to use array_walk() to append terms to an array of posts?
- custom hierarchical taxonomy and custom post type list contains surplus posts
- How to display custom taxonomy term meta on custom post type
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- Urls in Custom Post Type work for Terms but not for its Taxonomies
- Default post_tag for custom post type
- does wp_insert_term link the term to a certain post ID?
- Custom Taxonomy Terms in Menu lead to which page?
- Display what taxonomies a custom post has?
- Add filter to Admin list for all custom post types by their custom taxonomies
- Add the custom post term to the custom post title
- Retrieve Custom Taxonomies with Description and Slug
- How to list posts by term (custom taxonomy)
- Custom taxonomy not saving correctly
- Taxonomy terms with the same name are updated between separate custom post types
- How to automatically create a terms based on each post of a post type
- CPT : Next or Previous term link when has not adjacent post
- Add a class to a div if custom post type has specific terms?
- set_object_terms action hook based on the function in the published CPT
- Return multiples taxonomies with wp_get_object_terms
- Custom taxonomy terms hierarchical navigation
- How to list posts by terms
- Display Custom Post Type Based on Taxonomy With WP_Query()
- How to order taxonomy terms by most recent post?
- Cannot get to work tax_query array for terms
- Prev / Next Post Same taxonomy Custom Post Type
- How to show terms used only for particular custom post type. Filter creation perpose
- Custom taxonomy- only output relevant terms
- order taxonomy alphabetical
- Filter Term By Parent Term – Custom Post Type
- Display all Custom taxonomy terms and their relevant custom posts
- WordPress get all post with like in terms [duplicate]
- Decrement term in for each
- Best way to group posts based on custom post type terms
- Get list of CPT posts in *current* post’s taxonomy term
- Create an additional template page for every term taxonomy
- Prevent repetitive terms in get_the_term_list
- How to retrieve the permalink for a specific (custom) term?
- Exclude Custom Post Type from shared Custom Taxonomy
- Taxonomy Grid Archive Help?
- Remove Custom Taxonomy Slug only without removing Custom post type slug in permalinks
- Get term_id for each instance of custom taxonomy
- List a custom taxonomy’s terms, with links, on the taxonomy page
- taxonomy terms array not working
- install.php Custom Taxonomy Term not being added to custom post
- Author template – separate custom post type by custom taxonomy term for $curauth
- get_the_term_list() wanting to loop through the returned values
- show 10 most recent custom post types excluding the one(s) from specific custom taxonomy
- How to Get The Taxonomy Term in Custom Post Type Loop Inside a Wp Query
- Get term link of shared taxonomy between multiple post types
- How to use wp_set_object_terms depending on page ID?
- Get a custom post type’s taxonomy type term names displayed as checkboxes and filter
- How to list custom taxonomy terms without the hyperlinks?
- Can’t retrieve custom post type taxonomy term to custom post type editor