I used this method to dynamically create a submenu of subcategories, and it works perfectly:

Dynamically add sub-categories to any category in the menu

But I want the subcategory dropdown menu items to be in alphabetical order.

What do I need to add to the function to alphabetize only the subcategory submenu(s), but leave the main menu ordered as in Appearances > Menus?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.