I’ve been searching for some guidance on this subject but to no avail.
I want to have an horizontal menu that displays all my parent categories, and when I click on one of those, below it displays another horizontal menu but with the child categories of the clicked one.
The styling I think I can handle, but the php that would display the correct children upon clicking on the parent is what I cannot get right.
I’ve found that this kind of menu is very used but with pages instead of categories. This is a code I found and I replaced every ‘pages’ for ‘categories’, but it didn’t work (it was worth trying…).