WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Category order problem (4 posts)

  1. blekfis
    Member
    Posted 6 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?

  2. Xamataca
    Member
    Posted 6 years ago #

    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');

  3. blekfis
    Member
    Posted 6 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!!

  4. Xamataca
    Member
    Posted 6 years ago #

    you are welcome :-)

Topic Closed

This topic has been closed to new replies.

About this Topic