I used the conversation here to help structure my website’s homepage (displaying all subpages in Blog and Projects, sorted by date), but I am unable to figure out how pagination would work using the custom collection. Any help here would be greatly appreciated!
I used the Pagination Post in the Kirby Docs, and altered the foreach statement as instructed, but it doesn’t seem to work. I’m sure there is something simple I’m missing, but I can’t seem to figure out what I need to change.
Update: Using the following, I am able to get the Next and Previous buttons to show, but the URLs do not point anywhere.
Changing $post to $posts makes the Next and Previous links disappear (even though they don’t point anywhere). Navigating to /page:2 shows the posts in the right order, but I am unable to link to it automatically.
I also just noticed that the Pagination code causes the Footer not to display. I’m not sure if this is a symptom of something else going wrong.