I am currently using WordPress'
wp_list_categories function in order to retrieve my terms from a specified taxonomy. I like this function for its ability to generate (hierarchical) HTML lists, that are equipped with proper class names, etc.
I have sorted my terms using the Simple Custom Post Order plugin, which works fine when I'm listing all terms the regular way (i.e. using get_terms).
However, whenever I try to list my terms using
wp_list_categories, somehow it does not accept the "orderby" argument when using "term_order" (or "menu_order").
Could somebody point me in the right direction here?
I've provided my code below:
$categories = wp_list_categories([ 'taxonomy' => 'news_category', 'title_li' => '', 'orderby' => 'menu_order', 'order' => 'ASC', 'echo' => 0, 'current_category' => $current_term_id, 'depth' => 0 ]);
Edit: I used
menu_order, while I should have been using
term_order. Still, I hope this serves somebody, some day :)