Archived topic
Not getting paginated content from home
14 replies · Started by David Perez Garcia on October 13, 2021
Hello,
The last theme of a website (in private area) have before a paginated content from all content of the blog. How could it approach in GeneratePress? I cannot generate it easily or a way to make it.
Thanks
Hi there,
just to be clear - you want to add pagination to the post loop below the LO ÚLTIMO title?
Yes
That page is using the Latest Posts block - which i don't believe has pagination. How is the Load More button been added ?
But David, my problem is not to show pagination. My problem is that pagination /page/2/ is not working. It's showing the same home.
Hi David,
The blog page is static page, there isn't a page 2 for it.
Have you assigned a page as the posts page at settings > reading?
If so, can you link us to that page?
Let me know :)
Thanks, but if I make that, it will work pagination, but the content of homepage is removed.
So, I've created an element for main page in order to load after_header. Now I'm reaching the solution! But last step, How could disable this element in main page paginated?
Thanks!
Ok I see the last step could be done like Tom has replied:
https://generatepress.com/forums/topic/exclude-text-from-pagination-pages-from-elements-block-hook/
Would you recommend to dev people to implement a Pagination option to exclude hook?
Thanks!
For now you would use the Filter as per the one provided by Tom.
We are looking at adding Element Display Rules to include/exclude Paged options.
Yes, please. Thanks.
You're welcome :)
One last question regarding this ticket. How could I use Block content template for this page? I've used Main page for block template but is not working.
You can see it:
There should be an display location titled: Blog
Thanks
You're welcome