Hacker man here!

There’s a block in WordPress that splits a long post into pages, and most people never find it. No plugin, no code, no settings screen. One click.

flash-man

Howdy,
I’m Flash

So here’s the good news: you can paginate your posts, pages, and even comments without modifying any piece of code. The Gutenberg Block Editor (the current version of the WordPress editor) has a feature that lets you split a post wherever you want.

I’ve seen plenty of questions about pagination, and to be honest, most of the answers made it sound harder than it is. It isn’t. There are two separate things people mean by “pagination” in WordPress, and it helps to keep them apart:

  • Manual pagination of a post or page content, which you control with the Page Break block.
  • Automatic pagination of comments, which WordPress handles from a single settings screen.

Before we go any further, to avoid confusion between a post and a page, please take a peek at differences between a post and a page.

With that said, let’s see how to paginate in WordPress.

How to paginate posts in WordPress

Thanks to the block editor offered by WordPress, splitting a post is one click away.

There’s a block called “Page Break” that does the work. Whenever you add a new post, or want an older article split into several pages, click on the “+” and look under Layout Elements. Or, as I’ve said many times before, just type the name in the search box.

Page-break-under-Layout-Elements

Here’s exactly how it looks once you select that block:

page-break
From this point on, we have another page, right after this “sign”.

And that’s it. The block sits where the page ends. Readers get a numbered link at the bottom to move on, and you can put one break in, or five.

One thing to expect: how those page links look is up to your theme. Some show numbers, some show “Next page,” some barely show anything. If it looks wrong, that’s a theme question, not a block question.

How to paginate pages

A page in WordPress is for non-chronological content, let’s say pages like “About”, or “Contact” would be common examples, just to clear things up.

To paginate our pages, on the left-side menu, go to “Pages” – “Add new”, or as I said above, you can do pagination even on an old page. For example, you want to modify “Terms and conditions”.

“Page Break” works here too, exactly the same way. Same block, same menu, same result.

How to paginate comments

We want to paginate comments because a lot of comments will load slower than other posts. Not that it’s a bad thing having a lot of comments. No, mama, no! We all know what it means when we have a lot of comments on one of the posts. That’s right, your audience is engaged with your content. And this, my friend, is just the tip of the iceberg.

However, a lot of comments can slow down your website and it can even harm your search engine optimization (S.E.O.) rankings. And I can say for sure, that nobody wants that. I’m right?!

So, that’s when pagination for WordPress comments becomes our handy-man. And the best part is that it comes as a default feature in WordPress, just like “Page Break”.

With that said, let’s hit the ground and paginate some comments.

On the left-side menu, scroll down until you see “Settings”, and our focus goes to “Discussion”, go ahead and click on that.

break-comments

Next, look for the ‘Break comments into pages’ option, just like in the image below. From here you need to enter the number of comments you want on each page, and how you want to display them. Don’t forget to click on the “Save Changes” button to store your settings.

In this busy world, can you really afford not to try it out?

Now go ahead and try it for yourself. A real lifesaver!

Do you have some questions about pagination? Bring it!