WordPress blog pagination: a five-step setup and SEO framework
Set up WordPress blog pagination the right way: posts per page, the Pagination block or the_posts_pagination(), and Google's canonical and crawl rules.
In this note
TL;DR¶
Set how many posts each page shows under Settings > Reading. Then add numbered page links: use the Pagination block inside a Query Loop on block themes, or the_posts_pagination() on classic themes. For SEO, give every paginated page its own canonical URL, keep the page links as real crawlable links, link back to page 1, and don’t noindex page 2 and beyond.
Difficulty: Beginner (Intermediate if your theme uses a custom query)
Time to first result: Under an hour to set up and check. Any effect on how search engines find your older posts shows up over weeks to months, and nothing here guarantees rankings.
What pagination is, and why a content site depends on it¶
Pagination splits a long list of posts into numbered pages: page 1 shows your newest posts, page 2 the next batch, and so on. Together, the pages form a paginated series.
On a new blog with eight posts, you barely notice it. On a niche site with 150 posts, your archive pages become one of the main ways readers and crawlers reach older articles. Once a post drops off page 1, it relies on the page links at the bottom to stay reachable. If those links are broken, hidden behind a script, or marked “don’t index,” older posts lose a path that both visitors and Googlebot use.
That makes pagination part of your internal linking: the links between your own pages that help search engines find content and work out what matters. If you’re still at the stage of setting up the blog itself, start with how to start a blog and make money online and come back once you have a few dozen posts.
The framework¶
1. Decide which page lists your posts¶
WordPress gives you two setups, both under Settings > Reading (WordPress Reading Settings documentation):
- Your latest posts. The home page is the blog, and the paginated pages follow on from it.
- A static page. The home page is a fixed page (useful for a niche site with a “start here” layout), and you choose a separate Posts page for the blog. The home page and the Posts page can’t be the same page.
Two details catch people out with the static setup. First, WordPress ignores any page template you assign to the Posts page. The theme’s home.php controls how it displays, or index.php if there’s no home.php. Second, don’t name a custom home page template home.php, because WordPress will use it for the blog and break that section.
This step comes first because pagination attaches to whichever page lists your posts. If you don’t know which file or template controls that page, you’ll end up editing the wrong one.
2. Choose how many posts each page shows¶
The same Reading screen has the setting “Blog pages show at most [X] posts.” It controls how many posts appear on each page of the blog, and on the home page too if the home page shows your latest posts. Third-party guides such as WPBeginner give 10 as the default. The official documentation doesn’t state a number.
On block themes, a Query Loop set to the Custom query type has its own Items per Page setting for that loop (covered in step 3).
WordPress doesn’t give an official “right” number, so weigh the trade-off:
- More posts per page means fewer pages in the series, so older posts sit fewer clicks from the first page. The cost is a heavier page, especially with large featured images.
- Fewer posts per page gives lighter pages but a deeper series, so your oldest posts sit further from page 1.
Pick a number that suits your layout (a three-column grid looks tidy at a multiple of three), then leave it alone. Changing it often moves posts to different page numbers, which helps nobody.
3. Add the page links¶
How you do this depends on your theme type.
Block themes (Site Editor). Open the template that shows your posts (usually Home or Index) and find the Query Loop block. Many Query Loop patterns already include pagination. If yours doesn’t, type /pagination to add the Pagination block. It holds three inner blocks: Previous Page, Page Numbers and Next Page, which only work inside the Pagination block. Its settings let you choose None, Arrow or Chevron icons and show or hide the label text.
Next, check the Query Loop’s Query type. “Default” lets the template decide which posts appear, which is what a normal blog index needs. “Custom” adds options including Items per Page, Offset (skips a number of posts first) and Max page to show, some of them behind the three-dot menu (Query Loop block documentation). Be careful with “Max page to show”: if you cap the series, posts beyond the cap get no page link from this archive.
Classic themes (PHP templates). First check whether your theme already prints page links at the bottom of the blog. If it doesn’t, the_posts_pagination() (available since WordPress 4.1.0) prints numbered links for the main query. Place it after the loop in index.php or home.php, ideally in a child theme so theme updates don’t overwrite it:
<?php
the_posts_pagination( array(
'mid_size' => 2,
'prev_text' => '« Newer posts',
'next_text' => 'Older posts »',
) );
?>mid_size sets how many page numbers appear on each side of the current page (default 2). end_size (default 1) sets how many appear at the start and end.
The custom-query trap. Your template may run its own WP_Query, which is common in “featured posts” or category-style layouts. In that case, the lower-level paginate_links() function still reads its page count from the main query by default. The paginate_links() reference documents that total defaults to $wp_query->max_num_pages, so you have to pass your own query’s count. The pattern below comes from a user note on that page, not from official guidance, but it’s the widely used fix:
<?php
$paged = max( 1, get_query_var( 'paged' ) );
$archive = new WP_Query( array(
'post_type' => 'post',
'paged' => $paged,
) );
while ( $archive->have_posts() ) : $archive->the_post();
// your post markup
endwhile;
echo paginate_links( array(
'total' => $archive->max_num_pages,
'current' => $paged,
) );
wp_reset_postdata();
?>paginate_links() returns nothing when there are fewer than two pages. If your links “disappear” on a small test site, that may be the reason.
4. Keep every page crawlable¶
Google’s pagination guidance sets two requirements here:
- Page numbers need real URLs, not
#fragments. Google ignores fragment identifiers, so Googlebot may not follow those links. - “Load more” buttons and infinite scroll need a fallback. Google’s crawlers generally don’t click buttons or trigger scroll scripts. If you use either, the same content should also be reachable through normal crawlable links and your sitemap.
In a block theme, the Query Loop has an Advanced setting called “Reload Full Page”, which is on by default. WordPress calls it “generally the safest option for predictable navigation and accessibility.” If you turn it off, only the post list updates when someone changes page. The WordPress docs don’t say how that affects crawling, so leave it on unless you have a specific reason.
Many bloggers assume one style ranks better. Google’s guidance doesn’t rank numbered pages, load more or infinite scroll against each other. It only covers whether crawlers can reach the content. Choose the style your readers prefer, as long as plain links still exist underneath.
5. Set the SEO signals correctly¶
Google’s guidance gives three rules for the series itself:
- Each page canonicalizes to itself. A canonical tag tells search engines which URL is the main version of a page. Page 3’s canonical should point to page 3. Don’t point page 2 and later at page 1, because those pages list different posts.
- Each page links back to page 1. This signals that the first page may be the best landing page for the series.
- The normal series stays indexable. Google suggests
noindexor robots.txt for filtered or re-sorted versions of a list (for example, a URL parameter that sorts posts oldest-first), not for the standard pages 2, 3 and 4.
Google says it no longer uses rel="next" and rel="prev", though other search engines may. Secondary reporting dates the change to March 2019. The tags do no harm if your SEO plugin adds them, but they won’t fix a broken series for Google.
Yoast’s pagination article (published 2018) agrees. It says every page in a series should canonicalize to itself, and it calls noindexing page 2 onward “a bad idea” because that can cut off internal links to your posts. It also notes that Yoast SEO 6.3 removed the “noindex subpages of archives” option, so any guide that tells you to tick that box is out of date. The same article says you can ignore Search Console’s duplicate title and description warnings on paginated pages.
Splitting a single post across pages¶
WordPress has a second kind of pagination. The Page Break block (type /page-break) splits one post into several numbered pages, and each break adds a page number to the links at the bottom. It has no settings.
We couldn’t find solid evidence on whether multi-page articles help or hurt search performance, page views or ad revenue, so we don’t claim either. Our default is to keep a post on one page unless readers have a clear reason to want it split, such as a very long multi-part tutorial. If you do split one, check that each page link works and that each part makes sense on its own.
Example walkthrough: a home espresso blog¶
This site is hypothetical, and its numbers are assumptions.
The site: a home espresso blog with 140 posts (grinder reviews, dialing-in guides, milk steaming tutorials). It earns from affiliate links to grinders and machines. It runs a block theme with a static “start here” home page.
Step 1. Under Settings > Reading, the home page is set to “Start Here” and the Posts page to “Blog.” The owner confirms that the theme’s Home template, not a page template picked in the editor, controls the blog listing.
Step 2. The blog uses a three-column grid, so 12 posts per page fits neatly. With 140 posts, that makes 12 pages (11 full pages plus one with 8 posts). The owner considers 24 per page to halve the depth, but decides the image-heavy grid would load too slowly.
Step 3. In the Site Editor, the Home template’s Query Loop is set to “Default,” so the Reading setting applies. With “Custom,” they would set Items per Page to 12 there instead. They add the Pagination block with Chevron icons and leave “Max page to show” empty, so all 12 pages get links.
Step 4. They leave “Reload Full Page” on. They click through pages 2, 5 and 12 to confirm each has its own URL with no # in it.
Step 5. They view the source of page 2 and search for canonical. It points to page 2’s own URL, not the blog’s first page. They check that the robots meta tag isn’t set to noindex, then check that page 12 links back to page 1.
One disclosure check. Some post excerpts on the archive pages include affiliate links to grinders. The FTC’s guidance says disclosures must be hard to miss, so the owner makes sure the disclosure appears where readers actually see those links, not only in a footer. (This is general information, not legal advice.)
Once the archive is solid, the next job is getting visitors to it. How to get traffic to your blog for free covers that side.
Common mistakes¶
- Canonicalizing every page to page 1. It looks tidy, but it goes against Google’s guidance that each page in a series should canonicalize to itself.
- Following old “noindex subpages” advice. Yoast removed that option because noindexing those pages can cut off internal links.
- Shipping a load-more button with no links behind it. Readers can reach your older posts, but crawlers may not.
- Using a custom query without passing its page count. The links then read the main query’s page count instead of yours.
- Capping “Max page to show” and forgetting about it. Posts past the cap lose their archive link.
- Blaming WordPress for a plugin’s behavior. WordPress notes that plugins which change the front page or how posts display may affect these settings. If pagination breaks after you install something, test with that plugin turned off.
Tools (free first)¶
- WordPress core: the Reading settings, Pagination block, Query Loop and
the_posts_pagination()cover almost every blog, with no pagination plugin needed. If you’re still choosing a platform, WordPress vs Wix vs Squarespace for affiliate sites compares the options. - Your browser’s “view source” is the quickest way to check canonical and robots meta tags on page 2 and later.
- Google Search Console (free) has URL Inspection, which shows how Google sees a paginated page.
- If you run an SEO plugin such as Yoast SEO, view the source of page 2 to see what canonical and robots tags it outputs. Its current behavior on paginated pages may differ from the 2018 guidance cited above.
For pagination alone, a paid tool is rarely worth it. Correct setup is mostly settings and a few lines of template code.
Recap¶
- Confirm which page and template list your posts, especially if you use a static front page.
- Set posts per page once, based on your layout and how deep you want the series to be.
- Add page links with the Pagination block or
the_posts_pagination(), and passmax_num_pagesyourself for custom queries. - Keep every page reachable through real links, with a crawlable fallback for load-more or infinite scroll.
- Make each page canonicalize to itself, link back to page 1 and stay indexable.
Next, learn how category archives and in-content internal links work together, because pagination is only one route to your older posts.
Sources are linked inline. Fees and rules change, so confirm anything important on the platform’s own pages. How these notes are researched