Looper Consumer Blog page - Archive Page

Hi,
I am using an Archive page and created custom post cards as looper consumer to pull in my blog posts.

I want to have about 40 posts per page. My understanding is that pagination is not an option with custom Archive blog page. Can I create multiple Archive pages and replicate the same design but somehow have the looper consumer for the blog posts to pull blogs 1-40 and then on the second page pull blogs 41-80 and so on?

Or is there a better way to manage this? If this is the best method can I simply create buttons on each Archive page to link to the next or previous page Archive page?

Does each Archive page need a condition assigned? If so how would I do that in this use case.

Can all this been done on a regular page instead of an Archive page? And if so, what is the advantage of the Archive page?

Best

Hello @cmelnik,

Thanks for writing to us.

By default, WordPress doesn’t allow you to have multiple archive pages or you can not create multiple layouts as well. In case you want to display the post on multiple pages I would suggest you create multiple pages and use the Post element.

Hope it helps
Thanks

Understood.
I have created these “cards” based on a template from ThemeCo. using looper consumer and provider and what to place this on multiple pages to pull through my blog posts…

How can I set them up to have one instance on a page pull the latest 40 posts and then another instance on another page pull the next 40 posts and so on.

I want to break up all the posts and put a specific amount on each page but not have duplicated posts.

Example: Page 1 would have the latest 40 posts. Page two would pull the next 40 posts and so on.

Can I just set Looper provider count to 40 on page 1 then set the count on page 2 to for with an offset of 40 so it doesn’t duplicate 40 on page 1?

Hello @cmelnik,

Please keep in mind to have this in your Archive layout:
1.) Only Looper Consumer is needed in an Archive layout.

2.) If you add a Looper Provider, the Pagination element will not work.

3.) To display more items like 40 items for each archive page, you can simply go to Settings > Reading and set the “Blog pages show at most” to 40.

This will make your blog index or any archive page display 40 items for each page. For example,

Blog Index: 
https://example.com/blog/  -> 1-40 items
https://example.com/blog/page/2/  -> 41-80

Category "name":
 https://example.com/category/name/  -> 1-40 items
 https://example.com/category/name/page/2/  -> 41-80

If this does not help, please provide us the URL of your archive page so we can check it.

Hope this helps.

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