The pagination element usually includes one link for going forwards in the pagination, and one link for going backwards. Occasionally, the pages in the pagination are listed out with numbers, with each number linking to that page in the pagination. Another type of pagination is called infinite scroll. On websites with infinite scroll, more content is loaded asynchronously (without a hard reload) to the bottom of the page, either when the visitor clicks a “Load More” button or when he/she has scrolled to the bottom of the page.
WordPress includes four types of pagination as default, and they are supported in most WordPress themes. They are:
- Archive pagination: Used for moving between pages in an archive, like the blog archive for posts. It’s usually displayed immediately above the site footer.
- Single post pagination: When viewing a single post in a chronological post type, like blog posts, the single post pagination displays links to the previous and next post in the chronology.
- Paginated posts: Displayed in posts or pages that are divided into multiple subpages by the
<!--nextpage-->quicktag. If you’re writing a blog post about seven different movies, for instance, you can divide the post into seven different pages – one per movie.
- Comment pagination: The comments section of posts and pages can be set to display a pagination when it exceeds a certain number of comments.
You can set the number of posts to display per archive page in Settings → Reading, and the number of comments to display per comments page in Settings → Discussion.