Support » Themes and Templates » custom page template pagination

  • so, i have a page called news on my wordpress site that has a custom template running it. basically, it only shows post that i put into a news category, and is limited to only show the 5 newest post. how would i add pagination to get to the older post, or is that even possible. similar to an archives page.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I don’t know how to make “pagination” a Page. However, you may want to consider using a specific Category Template for that category, e.g. category-XX.php where XX is the cat ID#. On that one the pagination works nicely.
    See more:

    i’m not sure how the category template would work. would i leave my page using its cutom template, or would i replace that with a category template?

    or would i judt put some sort of code into the page template telling it to use the category template?

    also, as another option, is there a way to create an archives page that only displays the archive of one category?

    thank you!

    Too many questions for one post 🙂

    1. You can use your “custom” whatever even in the category template, too.
    2. Yes, replace it. Kinda. Page templates and category templates serve very different goals, so basically it will be “replaced” in its use.
    3. Forget the Page. A Page can NOT use a category template – that’s nonsense!
    4. If you get out the word “Page” from your mind – we will have a very quick understanding.
    Despite what you think, when you click on a category name – what is displayed is the “archive” or that single category. Just don’t create any Page. Category archives can be displayed by different template files according to the Template Hierarchy.

    And finally, to quote you: “I am not sure” you read the article at the link I gave… before replying.

    yeah, i read the article you linked, but it was rather confusing, so i was just looking for a little clarity. thanks for the help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘custom page template pagination’ is closed to new replies.