The drop down categories doesn't disply correctly. I have add more the 5 sub categories. But it just show the 5 categories. Why?
And why the sub categories menu is not sort by name? How to make it sort by name?
The drop down categories doesn't disply correctly. I have add more the 5 sub categories. But it just show the 5 categories. Why?
And why the sub categories menu is not sort by name? How to make it sort by name?
You will want to use the hide_empty=0 argument with the template tag, wp_dropdown_categories().
Also use the orderby=name argument.
After i change orderby=name the other categories will miss. Seem it didn't change any thing when i try to set the hide_empty value to 0 and few the sub categories will miss. Why?
wp_list_categories('number=11&hierarchical=1&orderby=name&hide_empty=0&title_li=');
Wonder if the number=11 argument is part of the problem?
Ya i have delete the number=11 value. But after i delete the value why the categories will sort by name? I just wan the sub categories sort by name.
Delete the number=11&
ya i have deleted the number=11&. But how to make the main categories do not sort by name?
Use orderby=ID instead of orderby=name and please review the link to http://codex.wordpress.org/Template_Tags/wp_dropdown_categories for more info
This topic has been closed to new replies.