我正在使用此link http://isbeingbuilt.com/ll/?json=get_category_index
链接以获取所有类别。但它返回空白数组:
{"status":"ok","count":0,"categories":[]}
有人可以告诉我为什么它没有返回所有类别。虽然wordpress网站有很多类别。请检查此链接:
答案 0 :(得分:0)
环顾四周,我不认为您的博客使用的是标准的WordPress类别。请查看http://isbeingbuilt.com/ll/?p=1&json=1或http://isbeingbuilt.com/ll/?p=13&json=1。 categories
为空,但"taxonomy_deal-categories
有很多动作!
开箱即用,json-api插件无法提供您所要求的方式,但幸运的是,Stack Overflow为pretty amazing。