2

I have read other posts on this forum and none of which I read are solving my problem.

Whenever I do: http://www.example.com/wp-json/wp/v2/posts?filter[posts_per_page]=-1

Or even: http://www.example.com/wp-json/wp/v2/posts?filter[posts_per_page]=99

It still returns 10 posts. The same is happening when I try to get the Categories, or the Tags.

I have a request to pull ALL categories, tags, and posts from the REST API as a single list.

2

According to the documentation, the correct argument is per_page

2

You can only able to retrieve 100 post per page,after that use pagination as Wordpress wpjson post pagination.

Eg : http://example.com/wp-json/wp/v2/posts?per_page=100&page=6

This will fetch the 6th page and which contains 100 post ranging between 500 and 600 posts.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.