How to separate WordPress single post into multiple pages?

November 17, 2016

In this article, I’ll show you how to separate WordPress single post into multiple pages, using WordPress’s wp_link_pages function. It’s really helpful for long posts (which take a long time to load & slow down your site), also can help your readers digest your content easier.

There’re two ways to split your post:

  • Adding tag manual
  • Using plugin

MANUAL

While editing your post/page in WordPress admin page, put the cursor where you want to split your post and press the Alt + Shift + P button combination

split post into several pages via Visual tab

As you can see, the previous action add the page break to your content like this:

split post into several pages via Visual tab 1

You can also go to your Text editor tab and add the following tag wherever you want to split your post, it will do the same thing:

<!--nextpage-->

Once published, your post will display the pagination at the bottom of your content.

Split WordPress post into multiple pages example

If the navigation section does not appear, this is probably because your theme is unable to handle the tag for splitting the page. So you need to add the following code in your single.php loop:

<?php wp_link_pages(); ?>

You can see the codex of wp_link_pages for the list of parameters.

USING PLUGIN

I’ve created a plugin for that. The plugin makes the pagination appear as a button:

split post into several pages via plugin

You can download my plugin here:  Download plugin

4 Comments

Leave a Reply

Your email address will not be published.