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
- Retrieve posts by term id custom query
- Change order of Custom Taxonomy List
- How to get current term in my custom taxonomy in WordPress?
- Custom order of terms for custom taxonomy in admin and website
- Front End Post Save Child terms
- Taxonomy slug by term ID
- Dropdown: Display terms from B only if has relationship with a term A selected
- wp_get_object_terms – How can I order the resulting array by hierarchy?
- Get current term’s ID
- Retrieve a specific field from taxonomy term through advanced custom fields [closed]
- Custom WP_Query breaks default behaviour of viewing right post associated with tax-term!
- How to set hierarchical terms to a post using wp_set_object_terms
- Echo taxonomy term meta on author.php
- Hierarchical display of custom taxonomy
- List only first-level children of specific custom taxonomy term
- get_terms of post->id
- 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?
- WPML Translating a term/taxonomy programmatically
- Outputting an array of term meta values in a custom WooCommerce tab?
- get_terms: determine if taxonomy term has children
- get_term_children returns WP_Error for custom taxonomy
- Exclude Taxonomy Terms from Template Via Back End?
- Displaying terms by first letter
- Print terms with taxonomy and metabox value
- Get custom category image from menu
- Same taxonomy for different object types
- Enable the admin to sort custom taxonomy
- How to show all possible parents and children of a hierarchical taxonomy term?
- Failure to add term meta
- Hierarchical Taxonomy Terms Select Menu Output with selected=”selected” Set
- Can’t set custom taxonomy terms via custom form
- get_terms not returning any custom taxonomies
- Search Query for Multiple Terms In Same Taxonomy
- What does ‘category__in’ mean in queries?
- Get only immediate children (and not grandchildren) of a hierarchical custom taxonomy term
- How to get_the_term_list() from multiple taxonomies?
- How to group all terms children’s in custom taxonomy?
- Display Posts by Custom Taxonomy Chosen Terms
- How to display a custom taxonomy without a link?
- Build filter for post-type + multi taxonomies + multi terms
- How do I get term data associated with the current post, where the result is not wrapped in HTML?
- wp_dropdown_categories – how to save in widget?
- Loop to display ONLY custom taxonomy parent information [closed]
- echo a specific custom taxonomy term on a different custom taxonomy archive
- Using Advanced Custom Fields Relationship Field to select a taxonomy term
- How to show post list based on taxonomy term?
- Display empty custom taxonomies differently than with one with posts
- Double slash in the_terms URL
- How to call a custom taxonomy term name inside a function?
- How to get this value inside RETURN
- How to list Custom Taxonomy
- query to use to link to taxonomy single page
- Custom Taxonomy List with Children
- Page for custom taxonomy
- Display Child Categories of Current Post ID
- Set two terms for a post when they differ only by an accent
- How can I show links for custom posts group by taxonomy current term and sub-term?
- How to use custom slug and custom templates for custom taxonomy?
- Echo ACF taxonomy field within a foreach for another taxonomy
- Infinite Scroll appending Next Product Category Term pages
- Connect ACF field + custom taxonomy [closed]
- Listing Cities A custom taxonmy by selection order
- Count tags for current post and save into custom meta field (and update it on post edit)
- get parent and childs from hierarchcial taxonomy
- ACF Field, hide taxonomy title and image when no nothing selected in post
- Get Highest and Lowest get_term_meta() value from Taxonomy Term
- Ignore punctuation marks in taxonomy order by name
- Print Custom Taxonomy Term Name
- Resize $term attachment using url
- Product dimensions filter by taxonomy
- How can I pull the slug of a custom taxonomy and output it in a class?
- switch statement for taxonomy content
- Taxonomies, Adanced Custom Fields and Repeatable Fields
- How To Display Selected Terms For Custom Taxonomy?
- Adding a query var to taxonomy term archive – gets redirected to the other taxonomy archive page
- displaying links if term is used
- How to include child terms within parent?
- stdClass::$labels /wp-includes/general-template.php undefined
- $term->taxonomy stripping out underscores
- Display posts from specific slug of the custom taxonomy in WordPress
- Foreach for get_the_terms for hierarchical taxonomy don’t repeat Top Level Terms if contains multiple Second Level Terms
- Gravity Forms with Advanced Post Creation Add-On not updating ACF fields on custom taxonomy