blekfis
Member
Posted 3 years ago #
Having problem with the function to order categories and hope there's an (not too shameful) easy solution. This is what's in the theme:
wp_list_categories('sort_column=ID&order=DESC&title_li=&depth=2');
The categories now show up: 37 - 39 - 1 - 36
I've tried twisting and turning stuff, but I'm unable to get them to show in the order I like (1 - 36 - 37 - 39). Unfortunately I cannot sort by name either...
What to do?
sort_column??? where do you get this paremeter from?? :-)
orderby=ID
http://codex.wordpress.org/Template_Tags/wp_list_categories
wp_list_categories('orderby=ID&order=DESC&title_li=&depth=2');
blekfis
Member
Posted 3 years ago #
Argh!! It WAS a shamefully simple solution... I've been looking at the codex, but didn't see what was wrong. Sometimes a fresh pair of eyes is just what's needed...
The theme is RevolutionTheme and the function was cut'n'pasted from there. My guess is the function has been updated but not that part of the theme.
Thanx a lot!!