I have created a custom taxonomy state and city. I want to fetch all the city for a given state using a drop down list. suppose first i need to select a state and then drop down automatically calculate the list of cities available for given state. This is really urgent for me.
Thanks, Sumit Jangir
I have created a custom taxonomy state and city. I want to fetch all the city for a given state using a drop down list. suppose first i need to select a state and then drop down automatically calculate the list of cities available for given state. This is really urgent for me.
Thanks, Sumit Jangir
Share Improve this question asked Dec 14, 2020 at 13:31 Sumit JangirSumit Jangir 374 bronze badges1 Answer
Reset to default 0You'll need to add the cities as a child of a state and then expose your custom taxonomies using the rest API.
After exposing it, you'll need to fetch the cities based on the selected state.
Please let me know if you need more information.