3

首先,我知道这是一个理论问题,它不包含代码,但实际上这次我没有代码,我需要你对这个问题的建议。

问题:

是否可以从 wordpress.com 博客或通过 jetpack 连接的自托管博客获取所有类别的名称?

我试着在这里找到它https://developer.wordpress.com/docs/api/但没有运气。

所以请建议。

4

2 回答 2

0

In case you are using JSON API plugin, you can use http://yourdomain.com/?json=get_category_index to get the list of all categories.

PS: You can use this JSON API plugin in place of jetpack api as it is hosted on your own blog with greater control.

于 2014-03-19T19:01:02.980 回答
0

我一直在寻找同样的东西。我不认为这个功能在 jetpack 上可用(截至 2013 年 5 月 24 日),但在托管博客上可用(见下面的链接)。

http://codex.wordpress.org/Function_Reference/get_categories

于 2013-05-24T16:16:21.543 回答