I’ve watched videos and reviewed posts and still I can’t get pagination to work on a page with ACF data. I’d like the results to paginate once the number of posts gets to 25. I can’t get this working.
Thank you.
I’ve watched videos and reviewed posts and still I can’t get pagination to work on a page with ACF data. I’d like the results to paginate once the number of posts gets to 25. I can’t get this working.
Thank you.
Hello @brocknessmonster,
Thanks for writing to us.
I tried accessing the site URL and your website dashboard, but it is not reachable from my end. This could be due to an IP restriction, a security plugin blocking access, or the site being temporarily down. Could you please let us know once the website becomes accessible, so we can check it on our end and guide you properly.
Thanks
Please use the new values I plugged into my secret note. Thank you.
I have checked the Looper Provider and found it shows the Agenda data, which has only 3 data points right now. If you want to show the pagination based on the number of Agenda, you need to use any of the predefined Archive Template, as currently pagination works on only a few Predefined archive layouts. I suggest you use any of the Pre-Defined Archive Layouts and check if the pagination works. If that works, I suggest you change the structure and style to match your design.
Alternatively, you can find the way to create the pagination within the Looper Provider using the Twig described in the following threads.
If that is not the case, you are trying to point out something else, please provide a few more details to understand what you are trying to acheive here.
Thanks
Sorry this all looks very convoluted. If I create an archive template like my search-results page
how do I assign that to my Agendas-Minutes page?
I added some mock Agenda/Minutes. I tried creating an archive template for Agenda/Minutes but wasn’t sure how to assign that to that page.
Thx in advance for any/all help. Thank you.
Hello @brocknessmonster,
Be advised that the Pagination element will only work on archive layouts. Regretfully you cannot assign an archive layout to your “Agenda Minutes” page. I would recommend that you follow the suggestion of Misho on this thread instead:
This should allow you to have a paginated Looper. Also, make sure to match the number of items return by the looper and the looper consumer.
Hope this makes sense.
How do I achieve step f) set a condition for the inactive next button? Also step h) towards the bottom. “add this condition” … how? I think the pagination is working but the logic that’s supposed to hide/show next button or the … button isn’t working.
Edit: I have another instance where I am developing the site we’ll be deploying in the next few weeks. For some reason the Agenda/Minutes content appears twice.
Hey @brocknessmonster,
For the step f
, you will be using the Number Condition:
The same goes for step h
with the opposite expression.
By the way, I just checked the page and I do not see that the Agenda/Minutes appears twice.
Cheers.
I have two versions of the site. The version on Pantheon and the version we have running on a local VM in our data center. The Pantheon version doesn’t have the double posting error.
Edit: Noticed Rewind was selected for the Looper Consumer. Switched it off and the duplicate copy of results disappeared.