Forum
Next/Prev Post Pagination on individual post page.
I wanted to add this feature to my individual post pages so that users can click back and forth between the prev/next posts . On the siteInspire individual post pages it has what I'd like to have - https://www.siteinspire.com/websites/4968-the-avery-review
Is there a way to do this?
Yes., by filtering with
perch_blog_custom()
.The previous post is the first post with a date less than the current post's date.
The next post is the first post with a date greater than the current post's date.
Cool thanks Drew I will try to add that now.
David did you manage to do this? I need to do the same from each news post have a next/prev link
I have the following in my post.php page;
and the following in my post.html template page.
But I am not getting any pagination links? The article is outputting onto the screen though.
I also have two empty fields in my post page in the admin. So perhaps I need suppress on the next/prev ID fields. But thought perhaps not as they were part of the core system/functionality?
Drew can you see where I am going wrong at all? Been a few months since I did a Perch site and a little out of touch.
Thanks.
Terry - please start your own thread if you have an issue. We can't keep track of multiple people in one thread.