【问题标题】:How can I dynamically filter the choices in a taxonomy select Wordpress?如何动态过滤分类选择 Wordpress 中的选择?
【发布时间】:2019-03-06 19:14:58
【问题描述】:

更具体地说 - 我有多选分类字段 A。当在 A 中选择一个或多个值时,我想限制分类字段 B 中可用的选择。

例如:

称为两种分类法

国家 - “美国”、“俄罗斯”、“中国”

城市 - “芝加哥”、“莫斯科”、“北京”

我希望当用户在分类“国家”中选择值“美国”之后,在分类“城市”中只显示“芝加哥”。可能吗?我该怎么做?

有没有 wordpress 插件可以做到这一点?

【问题讨论】:

    标签: wordpress advanced-custom-fields taxonomy custom-taxonomy taxonomy-terms


    【解决方案1】:

    我有同样的问题,试着从我的回答中获得灵感,它应该可以帮助你:How to display posts of taxonomy in WordPress page template?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-12-23
      • 1970-01-01
      • 2020-09-07
      • 1970-01-01
      • 2015-03-12
      • 2018-07-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多