Help loops Items Per Page

Hello, I made an API call and got a response with a variable allAds containing 5 items and a variable adsTotalItems with the number 5: I managed to loop through the 5 items, but now I want to implement a system for items per page. How could I do this? I have a variable itemsPerPage set to 2, so I want to display only 2 items with an option (yes/no) to show the next 2 items from allAds and the next 1 item to make it 5 in total. Is it possible to do this?
1 Reply
Baptiste
Baptiste3d ago
Should be possible but a bit complex...

Did you find this page helpful?