Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/*
Plugin Name: A-Z the Tags
Description: Alphabetize the list of tag links
Version: 1.0
Plugin URL: http://wordpress.stackexchange.com/questions/144703/wordpress-the-tags-not-in-alphabetical-order
*/
add_filter( 'term_links-post_tag', 'aztt_sort_tags_alphabetically' );
function aztt_sort_tags_alphabetically( $tags ){
natcasesort( $tags );
return $tags;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.