Pagination on blog archive page

Hi,

I have created an archive page layout for ‘blog’ and ‘news’ feeds pages, however the pagination arrows at the bottom are not working.
When you click the arrows the url shows it’s on a new page but the articles don’t update/chnage:

https://www.dudleycvs.org.uk/category/news/

https://www.dudleycvs.org.uk/category/blog/

I feel like this was previously working but I could be wrong.

Kind regards

1 Like

Hey @Nate_Sheridan,

Thanks for reaching out!

I suspect that you use Looper Provider in your layout. For archive pages, you do not need to have a Looper Provider since WordPress will dynamically generate the post items on archive pages. You can use the Looper Consumer automatically without the need for the Looper Provider. That being said, I suggest that you turn off the Looper Provider in your archive layout.

Hope that helps and let us know how it goes.

Hi @marc_a,

Thanks for the reply.
I am indeed using a looper provider for posts on those pages.
If I turn off the looper provider how do I choose what category is displayed via a looper consumer?

I cant work out how to set the data that pagination works from.
Doesn’t look like it’s using the looper provider/consumer feature.

Thanks

Hi @Nate_Sheridan,

The reason behind the pagination won’t work maybe the Looper and Post Pagination elements are not connected. For now pagination and the navigation element works with only a few pre-defined templates. I would suggest you use any of the pre-defined templates and change the design according to your need.

Hope it helps.
Thanks

Hi,

Thanks for the guidance.
I’ve managed to get pagination working using a default template archive page and replicating my page design.

part of my page design had a separate section with the most recent blog in. How do I now offset the post feed by 1?

Many thanks

Hello @Nate_Sheridan,

You can only offset the posts in the Looper Provider. When using the default WordPress Loop, you cannot offset it.

To get your issue, resolve, do not use any Looper Provider in your archive layout. Use two Looper Consumer. The first one which displays the hero post, the Looper Consumer item setting is “One”.
Screen Shot 2021-12-03 at 8.03.25 AM

The second Looper Consumer can have the “All” items which will display the remaining post items:
Screen Shot 2021-12-03 at 8.04.25 AM

If this does not work, please provide us access to your site so we can check your archive layout settings. You can create a secure note in your next reply with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
- Confirmation that we can access and make changes to your site

To know how to create a secure note, please check this out: How The Forum Works

Best Regards.

Thanks for the response, however this did not work for me.
I have now provided access details in the secure note.

Thanks for looking into this for me. If you can let me know the solution that would be great as I would like to replicate this on 3 other pages.

Kind regards

Hello @Nate_Sheridan,

The layout on the News category is correct.
https://www.dudleycvs.org.uk/category/news/

The layout on the Blog category is not because you have added a Looper Provider.
https://www.dudleycvs.org.uk/category/blog/

You need to remove the Looper Providers and use the Looper Consumers only.

Best Regards.

That’s brilliant.

Many thanks for the support!

You are most welcome, @Nate_Sheridan.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.