Listing categories in alphebetical order

One of my little pet peeves with WordPress is the fact that it didn’t list post categories in alphebetical order. I finally posted a question on the WordPress Support Forums and I had an answer in about 15 minutes.

This simple line of PHP allows you to list your post categories (like mine on the right column) in alphebetical order. Just replace the old categories command line in your index.php with this one:

< ?php wp_list_cats('sort_column=name'); ?>

I love WordPress!

One thought on “Listing categories in alphebetical order

Comments are closed.