How to Split Posts Across Several Pages

Blogging is a hobby

If you’re writing a particularly long article (which hopefully is long because it’s complex, not because you’re babbling on, or trying to achieve a preset number of words), you might want to split it into several pages to make it less overwhelming for your readers.

Naturally, being the awesome CMS that WordPress is, it carries this functionality natively. And there really isn’t a whole lot to it. Just find the point where you want to add a page break (there can be several), and type in the following:

The default appearance of the page links at the bottom of the page is very basic, but does the job. However, if you want a bit more control over how it looks, you can wrap your page links in a div tag. There’s more on this in the Codex if you’re interested.

6 thoughts on “How to Split Posts Across Several Pages”

  1. Ileane says:

    Dave, you’re a life saver. I searched for this – or a plugin to do this for 2 days!! Eventually I gave up – since it was actually my daughter that needed it. To be honest, I don’t like when I have to go to another page to finish reading an article. But the news sites do it all the time and her site is a fashion magazine so it will be perfect for her audience.

    1. Yeah, I can’t stand it when sites do that either. In fact, I would go so far as to say that in many cases I would walk away from the article from not wanting to mess about with flicking through pages.

      But I understand that news/magazine sites do it for advertising revenues, so it can be useful, but I’d just as soon never see it used!

      And you are of course, most welcome!

  2. BJ says:

    Do you know how to do this with pages (not posts) on wordpress. For example I have a lot of products on a product page that I want to split up.

    1. BJ,

      I’ve never tried but I think you should be able to do it on pages too. The only exception is that your page.php file would need to have the wp_link_pages function in it. See this article for more information.

  3. Ana Hoffman says:

    I, too, have been looking for this info, Dave; however, my main concern is SEO and creating a bunch of duplicate content.

    I wish there was a way to create unique titles and descriptions for those dynamic pages…

    1. There is: if you use WordPress SEO by Yoast, you can always add the page number to the page title. Also, the content will not be duplicated, just the page title.

Leave a Reply