Custom post type pagination (1 post)

  1. daleanthony
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic