WordPress.org

Ready to get started?Download WordPress

Forums

How do I paginate in the page template? (3 posts)

  1. therealaro
    Member
    Posted 3 years ago #

    I am trying to make a page post blog posts only from one category and paginate through them. I need help please.

  2. Simon Blackbourn
    Member
    Posted 3 years ago #

    I use a combination of the WP-Pagination plugin and this code in the page template file (you'll need to put your category ID number in the query_posts line):

    [Code moderated as per the Forum Rules. Please use the pastebin]

  3. Simon Blackbourn
    Member
    Posted 3 years ago #

    Note that the code above overwrites the original page query, so you might want to add this reset afterwards:

    <?php wp_reset_query(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic