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
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
As you can see, the previous action add the page break to your content like this:
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:
Once published, your post will display the pagination at the bottom of your content.
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.
I’ve created a plugin for that. The plugin makes the pagination appear as a button:
You can download my plugin here: Download plugin