• I am trying to get my categories to sort in reverse order, oldest on top. I have searched and many of the answers are 4-7 years old. Is there anything current that anyone is aware of that does this? Thanks.

Viewing 1 replies (of 1 total)
  • Do you just want to output a list of categories? Try using wp_list_categories. Also, what do you mean by reverse order? Reverse alphabetical order? Reverse order by date?

    List categories in reverse alphabetical order:
    wp_list_categories( array( 'orderby' => 'name', 'order' => 'DESC' ) );

    List categories in reverse order by date of creation:
    wp_list_categories( array( 'orderby' => 'ID', 'order' => 'DESC' ) );

    If this isn’t what you need, just holler back. ??

Viewing 1 replies (of 1 total)
  • The topic ‘post sorting in the categories’ is closed to new replies.