• /wp-json/wp/v2/posts this gives me 10 lates posts, what should the request url look like to get 10 more and more posts on the each button click,

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Your script needs to keep track of what page the user is on so you know what page number to request next. To get the second page of posts use this request:
    example.com/wp-json/wp/v2/posts/?page=2

Viewing 1 replies (of 1 total)

The topic ‘Rest api /wp-json/wp/v2/posts get more posts’ is closed to new replies.