我目前正在使用JSON API从wordpress 获取数据
http://wordpress.org/plugins/json-api/other_notes/
该插件有助于检索JSON格式的wordpress帖子数据
我注意到我可以在的某个类别中得到这个职位
http://www.test.com/?json=get_category_posts&id=9
我也可以搜索后
http://www.test.com/?json=get_search_results&search=keywords
然而,有没有在某些类别中实现搜索?感谢
您可以通过两种方式在类别中搜索帖子:
第一个
http://www.test.com/category/{category-slug}/?json=get_search_results&search={search-keyword}&cat=2
第二次
http://www.test.com/?json=get_search_results&search={search-keyword}&cat=2
第二个选项实际上重定向到第一个选项,但它有效。