Need help with blog posts and pagination

I have a website with hundreds of blog posts and I was hoping to use pro’s functionality to display a grid of the posts with pagination to show these instead of using a plugin.

I need to be able to display a large category without pre-loading all of the posts and images in the category before displaying them with pagination. My categories can have over 100 posts, so this slows down a page load.

Is there something like the component builder that will do this? I am having issues with getting pagination to show on a “page”. I would like to load a category of these posts on a particular page.

I currently use essential grid, but it pre-loads ALL posts and images in a category before displaying the category with pagination. I am looking for a way to only load what needs to display per paginated page, because the current method is bogging down the site, since our categories are so large. I was hoping pro theme has a built in way for me to achieve that.

Hello @Boans,

By default, the Pagination element can be used on the Category archive page. To use it, you need to create a custom layout from the Layout builder and insert the Pagination element. Please note that the Pagination element can be used on archive pages only with the layout builder.

Hope it helps
Thanks

Ok thanks! I think I can get this to work for us.

I got the pagination working fine. From what I understand, the pagination won’t work if I use the looper provider for posts, but I was wondering if it was possible to have different category archive pages showing different amounts of blog entries without using the looper provider (since I need pagination)?

I was trying to override the “Blog pages to show at most” in wordpress settings, but I thought the looper provider would be the only way to do that?

ALSO … Is there a way to randomize the post listing or specify the order criteria?

Hello @Boans,

Please note that the pagination will not work if you use the Looper provider since on the archive page, the default WordPress Looper is working so you don’t need an extra loop. You can create multiple archive layouts and assign them to the category archive layout. Please have a look at this doc to learn more about how to assign the layout. You can set the order on the archive layout using the Looper provider, but pagination will not work on the layout if you use the Looper provider.

Hope it helps
Thanks

How do I change the order of the posts on a Category Archive Template without using Looper Provider?

Hey @Boans,

You might want to check out the several methods to change the order of the posts items in the archive page here:

Best Regards.

So I will need to use a plugin or custom code to change the order of the posts without the Looper Provider if I want different ways to order the results on different archive templates?

Hello @Boans,

“So I will need to use a plugin or custom code to change the order of the posts without the Looper Provider if I want different ways to order the results on different archive templates?”

  • Yes, you will have to use a 3rd party plugin or custom PHP code to do that. Be advised that when using the Archive Layout Builder, you do not need to use the Looper Provider because it will be using the default WordPress looper and displays the items in chronological order. You can only use a Looper Provider/Looper Consumer set up on a normal page where you can easily change the order of the items.

You can create different custom archive templates for each of your archive pages with the Archive Layout Builder. You just cannot change the order within the builder.

Hope this helps.

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