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.
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.
收起
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
报告相同问题?