Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use term_group for ordering subcategories in Wordpress?

Tags:

wordpress

I'm looking to customize the order for subcategories listed in a navigation bar in Wordpress. The codex makes it clear that there are five ways to do this: http://codex.wordpress.org/Template_Tags/wp_list_categories#Parameters. I am limited to two: 1) prefixing each category with a number and 2) using term_group. The problem is that the Codex seems to be pretty vague as to how to make use of term_group as it only describes it as a group of terms. I know that a category containing the word, "video," always needs to be placed first, a category containing the word, "roster," always must come second, etc. Is there a way to achieve this without prefixing the slug and possibly using term_group?

like image 366
Adam Avatar asked Mar 01 '23 03:03

Adam


1 Answers

To do this generically for terms (with custom taxonomies), you can use http://wordpress.org/extend/plugins/term-menu-order

like image 56
jameslafferty Avatar answered Mar 05 '23 14:03

jameslafferty