Hey guys!
I need to create a dropdown that is dynamically created by wordpress based on the subcategories of the parent item.
The parent items are linked via permalinks, and I need a way for wordpress to populate a list with the children of the category based of their slugs so that I can manage subcategories easier.
so basically I have the following structure for my navigation:
Category A(slug:work)
Category B(slug:photo)
Page 1
Page 2
But I need it to be
Category A(slug:work)
-child A
-child B
Category B(slug:photo)
-child A
-child B
Page 1
Page 2
I've looked around a lot but can't find anything that works or that I can understand.
Thanks!