I have a form which creates posts, however I only want to display certain categories in the drop down list. These categories have subcategories, however when I add them to the form they do not appear as being listed under their parent category instead they appear like this:
Parent Category A
Parent Category B
Parent Category C
Subcatagory A
Subcategory B
How can I order them so that the subcategories appear under the correct parent in the form drop down list?