Support » Theme: Twenty Thirteen » How Do I Get My Child Theme Post Tags to Alphabetize ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • A kind contributor on WordPress StackExchange suggested that I past this code into the functions.php file of my Child Theme (Blogsonry):

    add_filter( "term_links-post_tag", 'themeslug_sort_tags_alphabetically' );
    function themeslug_sort_tags_alphabetically( $tags ){
        natcasesort( $tags );
        return $tags;
    }

    So far, it seems to work well.

    Mark Root-Wiley, the developer of the Blogsonry Child Theme created a plugin using the above script: A-Z the Tags which negates the need to re-install the above script every time he updates his theme.

    Just download as a .zip file, and then upload to your plugins directory.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How Do I Get My Child Theme Post Tags to Alphabetize ?’ is closed to new replies.