Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get events only get 4 events #2

Open
bayethiernodiop opened this issue May 11, 2017 · 1 comment
Open

get events only get 4 events #2

bayethiernodiop opened this issue May 11, 2017 · 1 comment

Comments

@bayethiernodiop
Copy link

Hi i am using the plugin but when i call the endpoint /events i only get 4 events and in my web page i am having all the events Can someone help please

@nexorianus
Copy link

very late to the party...
use page and per_page params in request. this is limited to 100 elements tho. so if you need more, you would need to call the request several times.
example.com/wp/v2/events?page=1&per_page=100
example.com/wp/v2/events?page=2&per_page=100 and so on...

see https://developer.wordpress.org/rest-api/using-the-rest-api/pagination/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants