标签: wordpress jetpack wp-api
我可以while (input) { int32_t index = __builtin_ffsll(input); // do stuff } 查看WP网站上最新的20篇帖子。
while (input) { int32_t index = __builtin_ffsll(input); // do stuff }
如何查看超过20个?或查看所有帖子?
答案 0 :(得分:1)
如documentation for GET /sites/$site/posts/所述,只需在查询字符串中包含相应的number和page个参数。
GET /sites/$site/posts/
number
page
查看前100个:
https://public-api.wordpress.com/rest/v1.1/sites/en.blog.wordpress.com/posts/?number=100&page=1
查看第二个100:
https://public-api.wordpress.com/rest/v1.1/sites/en.blog.wordpress.com/posts/?number=100&page=2
等