Categories
Posts

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!

1 reply on “Listing categories in alphebetical order”

Back
I have not posted during the last couple of days because I was moving marteydodoo.com to a new web host. This move has fixed the problem with incoming trackbacks.

While waiting for the DNS settings to be updated, I took the opportunity to change som…

Comments are closed.