Rather than outputting your terms in that initial loop, I would use it instead to build a new array, with your issue_date as the key:
$my_new_array = array( );
foreach ( $terms as $term ) {
$issue_date = get_field( 'issue_date', $term );
$my_new_array[$issue_date] = $term->name;
}
You can then loop through this new array in order:
ksort( $my_new_array, SORT_NUMERIC );
foreach ( $my_new_array as $issue_date => $term_name ) {
echo "<li>" . $term_name . " " . $issue_date . "</li>";
}
This is untested.
Related Posts:
- Get value in custom field with taxonomy [closed]
- Display Custom Taxonomy Terns ordered by meta_value
- Custom Taxonomy terms with latest post ordered by date pagination issue
- Ordering Posts with Custom Taxonomy Terms Array
- Advanced custom fields – taxonomy terms images [closed]
- Operations with custom fields values in a loop
- How to add contents of a custom field to a taxonomy term list?
- Sort order by slug for looped child terms of custom taxonomy
- Weekdays as terms – How to order taxonomy terms by ID in admin panel?
- Can’t get taxonomy ID for each post on archive page
- How to add a date creation field when a custom taxonomy relationship is created?
- Show related posts on single.php, grouped by taxonomy terms, with Advanced Custom Field post object selected
- Order taxonomy terms wordpress
- Orderby taxonomy term id using get_posts not working
- Sorting terms individually for each post
- Tax query array terms display out of order
- Order posts with custom taxonomy array
- get_posts assigned to a specific custom taxonomy term, and not the term’s children
- How can I get only parent terms?
- Retrieve posts by term id custom query
- How to prevent new terms being added to a custom taxonomy?
- Query users by custom taxonomy and user role
- Determine Term depth
- Order get_terms() By Custom Field
- Custom order of terms for custom taxonomy in admin and website
- Is there a way to disable a term rather than deleting it?
- Best pratice to make taxonomy terms translatable without changing slugs?
- Taxonomy slug by term ID
- Remove Category description textarea
- wp_insert_term auto unique name
- wp_get_object_terms – How can I order the resulting array by hierarchy?
- Retrieve a specific field from taxonomy term through advanced custom fields [closed]
- Listing child terms of parent term
- Display the taxonomy name of the current term
- Automatically assign taxonomy term if custom meta value exists
- List only first-level children of specific custom taxonomy term
- get_terms of post->id
- Dynamically tax_query terms
- get / list categories and counts filtered by custom taxonomy term
- How to get a list of taxonomy terms which are being used only within certain post types?
- get_the_terms() to show all custom taxonomies
- Custom Taxonomy Archive BUG
- Can I limit term selection to one plus parent?
- Insert form checkbox at bottom of taxonomy edit term page
- Exclude Taxonomy Terms from Template Via Back End?
- how does get_term_by know which term to return when the same term appears twice in a hierarchical taxonomy?
- Changing stylesheet depending on custom taxonomy terms
- Taxonomy archive showing no results
- Print terms with taxonomy and metabox value
- How Can I Change a Taxonomy URL Based On The Originating URL?
- Changing taxonomy term by slug (wp_update_term)
- Custom Taxonomy Term Caching?
- How to show all possible parents and children of a hierarchical taxonomy term?
- Failure to add term meta
- Display value of custom field of custom taxonomy in single post?
- group posts by taxonomy terms
- List related terms + taxonomies
- Display all posts that use a custom taxonomy
- Are term IDs unique even between multiple custom taxonomies
- What is the action hook that deletes a taxonomy term from the backend? And how to retireve the term id before deleting it?
- How to find taxonomy parent id from child taxonomy page?
- Display a colour of custom taxonomy on the page
- Why does wp_remove_object_terms not work?
- Order get_terms by multiple meta_values
- Create alphabetical Pagination for custom taxonomy?
- save custom term – hook create_term doesn’t work
- URL rewriting taxonomy term
- How to show post for a particular term of custom taxonomy?
- Hide echo of no categories from get_object_taxonomies
- Show all terms in a custom taxonomy with all child terms wrapped in a ul
- Unable to get the Parent Custom Taxonomy Terms
- How to get the term description in a taxonomy term archive query?
- Unsetting post_tag taxonomy breaks term description for other taxonomies
- How to list terms by first letter, as in A’s then B’s etc
- Why do my quick edits for custom taxonomies not show on the post frontend?
- Pull data from MySQL and add it to terms
- new custom filed not showing in taxonomy
- Ordering terms whilst in loop
- Get custom taxonomy terms that contain posts that have another taxonomy term
- Cloning product not copying custom taxonomies
- Create new Taxonomy, add extra fields, register terms AND extra fields values?
- How to change custom categories term links?
- ACF Custom field not showing in Timber Taxonomy page
- How to get a terms and posts associated with another term?
- Displaying subcategories and then posts in taxonomy template
- How to filter a taxonomy meta field to the ‘single_term_title’ filter hook
- Creating a list with multiple categoreis and options
- List terms and order by second word
- Query pages by child term
- Display taxonomy term slugs
- Taxonomy term breadcrumb; how?
- Insert term description programmatically into hierarchical custom taxonomy
- Transfer taxonomy to custom field
- Display term description on hover using get_the_term_list
- Unable to display the post titles in a drop down
- Display woocommerce product_cat child terms with thumbnails
- How can I get the term_id from the action hook ‘set_object_terms’?
- List posts grouped by children of a custom taxonomy
- Taxonomy Child Not Updating Unless I Click Update Twice
- Save selected terms in order of custom taxonomy in post