我正在使用WordPress网站。
我有一个JSON数据如下:
{"id":355,"title":"ZISIMOPOULOS LTD","cat":{"1":"Contractor - High Pressure","2":"Cutting & Breaking","3":"Hydrodemolition","4":"Surface Preparation - UHP","5":"Tube, Pipe & Bundle Cleaning"},"link":"http:\/\/localhost\/members\/zisimopoulos-ltd\/","memberType":"C1 - Water Jetting Contractor","email":"info@zisimopoulos.gr","telephone":"302104412004","fax":"302104416524","website":"www.zisimopoulos.gr"}
每个成员都与多个类别相关联,例如上述数据:
"cat":{"1":"Contractor - High Pressure","2":"Cutting & Breaking","3":"Hydrodemolition","4":"Surface Preparation - UHP","5":"Tube, Pipe & Bundle Cleaning"}
我必须列出页面左侧的所有唯一类别,并在其旁边显示每个类别的复选框。
现在我需要在点击页面左侧的每个类别时过滤数据。可以单击多个复选框。
下面是我想要实现的截图。左侧的类别,单击复选框将过滤结果。
有人可以帮忙吗?