Order get_terms using a Custom Field
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 … Read more