I have just installed pagenavi to handle the pagination for my blog posts. The issue here is that there are 2 seprate “blog” pages so instead of using the default index template i am using a custom page template for each of the 2 pages which will contain posts.
The way I have it set up is that I have 2 categories, which category the posts are assigned to determines which page to display the post on.
I added the pagenavi code below my loop and the links display properly, but when I click “previous posts” it takes me to /page/2 but it shows the same posts that were on the first page instead of showing older posts.
Also, this is my first attempt at coding a WordPress theme from scratch so if you have any other pointers for my loop, it would be greatly appreciated! Thanks in advance!