Custom post type pagination
-
Hey everyone,
Been trying to get this working all day but haven’t had any luck…
I have a custom post type called ‘news’ and an archive template (archive-news.php), here I’d like to show 2 posts with pagination, this is the code I’m using:
Which shows the two posts OK, but when I try to go to the next page (/news/page/2) I’m taken to a 404 page.
Any idea how to fix this / what I’m doing wrong? I’ve tried various snippets of code, all of which produce the same problem.
- The topic ‘Custom post type pagination’ is closed to new replies.