Template Tags/list cats « WordPress Codex
Well I’ve been trying to sort out my categories. They were in ID order, so essentially the order that I thought of them. I’d found this page, and it seemed as if I _ought_ to be able to get them into alphabetical order, but try as I might, nothing. However, this thread on the word press board, pointed me to an updated php file, and finally I discovered that though the example file I was playing with was using the “list_cats” function, I could also use the wp_list_cats
, which are much more readable, so I was able to alter
< ?php list_cats(0,'', 'name', 'asc','',1,0,1,1,1,1,0,'','','','','') ?>to < ?php wp_list_cats('sort_column=name&optioncount=1'), which does what I want (in part, because some of the options that I wanted were the default options, so nothing needed on my part.

Leave a Reply

Your email address will not be published. Required fields are marked *