douyijin7741 2015-11-23 21:25
浏览 24
已采纳

如何更改Wordpress JSON Api每页加载的帖子数量

How to change the number of posts that WordPress JSON API loads per page.

The default is 25, because of low internet connection I want to make it less.

  • 写回答

2条回答 默认 最新

  • doujiang5211 2015-11-24 06:31
    关注

    As explained in the documentation, you can specify the maximum number of posts in the response with the count parameter in your request.

    Example with user-friendly permalinks configured:

    http://www.example.org/api/get_posts/?count=10
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部