Skip to main content
← Data, API & Backend
Data, API & Backend November 6, 2022 · 1 reply

wordpress API bug (pagination bug?)

Archived from the Bravo community forum (2021–2026). Some answers may refer to older versions of Bravo.

Hi together,

I think there is a wordpress pagination bug.
I use my wordpress blog to get data via the rest api (https://domain.com/wp-json/wp/v2/posts)

I can get one post by adding this address as request url. But in the app I want to have all posts with pagination. So I used the parameters from wordpress docu and from this site:
https://docs.bravostudio.app/integrations/pagination#wordpress-and-github

Here are my settings:

Bildschirm­foto 2022-11-06 um 21.27.37.png

I've just tested it with the thumb and the post title, see here:

Bildschirm­foto 2022-11-06 um 21.28.34.png

App: "Bravo Sample: Basic app template"

Here are my data binding settings:

Bildschirm­foto 2022-11-06 um 21.30.40.png

**The problem is:
**
I get the 1st post and after that the 10th post from page 1. After that the 1st post from page 2 and the 1st post from page 3.... and so on. But I just get 5 posts at all! If I scroll down the app won't load more posts.

Problem 1: where are the posts between post 1 and 10 per page?
Problem2: where are the rest of the posts after the "5th" post?

Is this a bug?

The response body (wordpress json) looks correct. But the app shows different results.

Thanks a lot :-)

1 reply

Wrote something in this thread and want it removed? Request removal

Still stuck?

Ask the community on Discord

This archive is read-only. New questions, office hours and product updates now happen in the Bravo Discord.

Join the Discord