Archived topic
Change Amount of Posts Displayed on Subsequent Pages (Request or Help)
5 replies · Started by Michael on October 27, 2021
My front page is set up so that it lists the first 5 blog posts. The first post is always featured, taking up the entire width thanks to a setting in Layout > Blog. The problem is that on subsequent pages, (from page 2 and onward), it lists all posts as regular sized and I end up with one post by itself on the bottom. I was wondering if there was a way to make page 2 and onward display 6 posts (or any other even number) so I wouldn't have that problem.
Hi Michael,
You'll need to filter the post loop for this.
See this explanation on how to do it -
https://stackoverflow.com/a/25465332
Here's how to add PHP - https://docs.generatepress.com/article/adding-php/
I have the same issue. I tried using the PHP and it did not work. Any chance there is an easier fix for this?
Hi there,
this kind of change will require some code as it requires messing with the WP Query.
And this code will depend on how you're displaying those posts.
If you can raise a new topic, where you can share a link to your site, i will take a look
will do, thanks very much David
You're welcome