最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to add a dynamic dropdown derived from custom taxonomy

programmeradmin0浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

You'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.

发布评论

评论列表(0)

  1. 暂无评论