Archived topic
Load More Custom Pagination
3 replies · Started by Wil on December 7, 2022
Hi my site uses posts per page = 4.
I use the make first post featured option which displays the first post 100% width and three columns underneath.
However, when I'm using the Load More button I need 6 posts to be displayed so the columns fill up the columns properly.
So my case would be:
Initial page load = 4 posts
Load More button = 6 posts
Are there any WordPress filters to change this behaviour?
Thanks
Hi Will,
Yes, there's a filter. It's called pre_get_posts.
See a sample here: https://generatepress.com/forums/topic/different-number-of-posts-on-first-page/#post-2162856
Also see: https://generatepress.com/forums/topic/custom-number-of-posts-on-load-more/
Thanks!
You're welcome, Will!