Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Every time I enter the categories they arrange themselves in ascending order. I want to randomly arrange it without them being in ascending or descending order. How can I change the setting?

share|improve this question
Are you referring to the main Categories page under Posts (in the admin), or the small Categories meta box on the post Edit screen? – Pippin Jul 11 '12 at 3:56

closed as not a real question by toscho Feb 9 at 12:00

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

1 Answer

Wordpress category list works on defined order structure. If you won't define any it will use default order and that is ascending.

However you can play with orderby and/or order to display your list.

orderby 
(string) Sort categories alphabetically, by unique Category ID, or by the count of posts in that Category. The default is sort by category name. Valid values:
ID - Default
name
slug
count
term_group

order 
(string) Sort order for categories (either ascending or descending). The default is ascending. Valid values:
ASC - Default
DESC

Refer wordpress codex for more detail http://codex.wordpress.org/Template_Tags/wp_list_categories

share|improve this answer
1  
The plain SQL is really not helpful at all. – Pippin Jul 11 '12 at 3:56

Not the answer you're looking for? Browse other questions tagged or ask your own question.