Can someone help me please, i'm not good with php. i have created a custom post type called "used-car" and a custom taxnomy called "used-car-category" in functions.php
I need to create a dropdown search form which displays a list of category and subcategory on homepage. example
dropdown 1 [car make] "category"
dropdown 2 [car model] "subcatagory"
when you select a car model in the dropdown eg audi, second dropdown will display the different model variant of audi.
catagory on the cms looks somthing like this:
audi < catagory
- a1 < subcatagory
- a6 < subcatagory
mercedes < catagory
- a class < subcatagory
- b class < subcatagory
- c class < subcatagory
i would like this search form to be displayed on homepage. can someone help me please? a working code would be helpful.