How to split a Post into several Pages

- by
Post Pagination in action

Sometimes you have posts that exceed 500 words by a landslide. At the same time, you don’t what to split your content into several posts for the sake of your readers and commenters. The easy solution is to use multiple pages per post – also known as Pagination.

You may have seen this feature on various sites and you may have been wondering which magic plugin these authors use for a complex task like this.

Guess what: The solution is BUILT IN to WordPress – it’s just not publicised very well.

All you have to do is put the following code into your HTML view whenever you feel there should be a page break in your post:

<!--nextpage-->

This feature is called NEXTPAGE and works much like the READ MORE function with two annoying exceptions:

  • READ MORE has a convenient “visual” shortcode rather than a HTML comment shortcode (meaning you have to switch views to use it)
  • READ MORE has a handy button in the menu bar… NEXTPAGE hasn’t (anymore)

However, there once WAS a button which was taken out sometime in WordPress 1.51 to reduce the clutter in the quicktag bar. Lucky for us the code is still there – so why not bring it back to life 😉

That’s precisely what Shawn Parker did with a simple plugin which adds the NEXTPAGE button back into your quick tag bar. It should have never gone if you ask me. Download it from the WordPress Repository or search for “nextpage buttons” under Plugins – Add New.

Auto Pagination

If you’re not too bothered about when the pagination takes place you can also use Simon Wheatley’s Auto Pagination Plugin (or search for “autopaginate” under Plugins – Add New)

This works by placing a tick box in the Post Publishing window and asks you if you’d like to auto paginate said post. It will then place the <!–nextpage–> shortcut into your post on the fly. You can also set how many words you’d like to display before pagination occurs (under Settings – Writing).

Why do I need this again?

If you’re writing posts between 10 and 500 words you probably won’t feel the need for this function. But if your posts regularly exceed that amount of text it can get annoying for your readers:

  • longer loading
  • the nav menu is far away
  • sidebar content is no longer visible towards the bottom

If you have several comments on your post the length will increase even further. Which may lead you to the next question:

Can I split my comments into several pages too?

Yes you can – this feature is called Comment Pagination. You can set this up under Settings – Discussion – Other Comment Settings (break comments into pages).

How do I style the NEXTPAGE display?

There’s a handy article from the WordPress Codex that explains how to use and style those functions (this documentation is meant for Theme Developers – if it sounds like Chinese to you, don’t worry about it).

Have fun paginating your posts 😉



If you enjoy my content, please consider supporting me on Ko-fi. In return you can browse this whole site without any pesky ads! More details here.

7 thoughts on “How to split a Post into several Pages”

  1. Hi night-hawk,

    Google doesn’t actually know about the pagination, as far as they are concerned its just one long post. Pagination only affects the way WordPress displays that long post to the user, adding virtual sub-links if you will.

Leave a Reply to Quimby MeltonCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.