If you want to achieve that, then you need to add creation_date
for each taxonomy, hooked with ‘create_category’ (or create_YOURTAXONOMYNAME) function.
lets say,for example, you add a new category :
add_action( "create_category", 'my_func123', 10, 2 );
function my_func123( $term_id, $tt_id){
update_option('my_taxnm_date_'.$term_id, time());
}
then later, anytime, you will be able to get the creation date for each taxonomy id:
foreach ( $terms as $term ) {
$termsArray[]['Name'] = $term->name;
$termsArray[]['Date'] = get_option('my_taxnm_date_'. $term->term_id) ;
}
now, you just have to sort the array, like: ksort($termsArray[]);
and then you will have sorted array.
Related Posts:
- What is ‘term_group’ for ‘order_by’ in get_terms()?
- Display all the subcategories from a specific category?
- How to get_term_children output in alphabetical order?
- Order get_terms() By Custom Field
- Get multiple term IDs by slug, and then exclude them in get_terms
- Child terms from multiple parents?
- wp_set_object_terms creates relationship to REVISION?
- How do I access a single term from a post?
- Prevent Selected Terms Rising to the Top
- How to update incorrect post count in taxonomy?
- Display Custom Taxonomy Terns ordered by meta_value
- List taxonomy terms plus their latest post ordered by post date
- Custom Taxonomy terms with latest post ordered by date pagination issue
- has_term() does not return when term is assigned post?
- Sorting Attributes order when using get_the_terms
- get_terms() but with additional dimensions?
- how is it possible that using wp_insert_category throw a fatal error?
- get_terms only show term if there is a post using it
- get_terms orderby name as numbers
- Ordering terms before displaying posts
- get_terms() order by term_meta
- Difference between get_category, get_term_by and get_categories
- get_terms() for custom taxonomy related to another taxonomy
- get_terms from registered taxonomies not working
- Do I have to set parent when set post term?
- How do I determine if a certain term is in an array?
- Order wordpress taxonomy parent terms by their children count
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- Display custom taxonomy on single post
- Question with get_the_term_list
- Group child category IDs based on their parent category
- Allow user to set custom order to a list of custom taxonomies?
- Custom Template for one Taxonomy Term
- Unset actions for terms parent only
- How to order posts by title after they have already been sorted by category
- Getting all categories even with no products under it?
- Sticky posts per category
- Ordering Taxonomies / Changing term_id
- Faceted search with WP-API data
- Programmatically add posts add and assign postmeta and assign terms
- When using the get_terms and trying to order the terms using the ‘order’ and/or ‘orderby’ does not work
- get_terms – name__like a number
- Query to get term id using post id?
- Why does wp_get_object_terms add a period after terms are output?
- Conditional Statement with Multiple Terms?
- wp_set_post_terms is assigning only the last of several terms to a post
- Leveled – Terms foreach
- Add Taxonomy Description with wp_set_post_terms
- Add class to first post queried
- wp_insert_post() does not support variable
- How to force acceptance of site terms on first login?
- Weekdays as terms – How to order taxonomy terms by ID in admin panel?
- Missing term_id value
- array_replace throwing php_warning but working anyway
- Get current term in single.php
- Ordering taxonomy output in this function
- Polylang : Display term archive even if no posts
- Tax query with multiple terms in pre_get_posts
- Echo term slug op post on archive page
- Order get_terms by multiple meta_values
- Display posts belonging to child term
- Getting terms to have space between them
- Get get_terms alphabetically
- How to get term by name with parent id?
- CTP – check for value inside objects
- If product is in sub-category show code
- List posts by their custom taxonomy term, with a condition
- Set unique term_id from custom meta keys
- Trying to use wp_set_object_terms while supplying an array for both term id, and texonomies
- Order taxonomy terms wordpress
- Problem retriving the post type category
- get_terms_args ordering by meta key not working
- Cannot retrieve categories for post in The Loop
- PHP Warning: Attempt to read property “slug” on bool in tax query
- get_terms() delivers wrong count with custom taxonomy childs on custom post type
- Ordering terms whilst in loop
- get_the_term_list( get_the_ID() label formatting?
- I can get posts in all categories. But I want to get the custom post type I created
- Order get_terms by multiple values
- Get All Taxonomy Terms From Get_terms Array With Specific Array Key
- Confused by get_the_terms to use in a new wp_query
- Flush rewrite rules after a term is edited
- How to show term child only if has a post
- Change the last separator in the_terms
- Importing custom DB table entries as posts with Categories
- A Comma Between Each Items Except the Last One with get_the_term_list [duplicate]
- Getting Term_id – Taxonomy Metadata plugin
- store an array of all the terms existing
- Tax query array terms display out of order
- Get Parent Custom Taxonomy Term and Color Div background
- get_the_term_list() display in ul li and remove tag
- Function to delete a term when a custom post with the same slug is trashed
- Custom field drop down to set the term of the post when published
- Conditional output based on taxonomy ID of custom post
- Can One Taxonomies Terms be Ordered by A Seperate Taxonomy?
- list taxonomy terms in current post / current category
- Relate term to term?
- How can I filter get_terms with post meta
- How to get tags only with custom meta field and display them randomly?
- Woo – Change order status by category [closed]