How To Publish Multi-Page WordPress Posts
In the WordPress backend panel you have the option of writing new pages or a new blog post. These options differ because of how WordPress organizes content, and how the dates are formatted. But what’s interesting about WordPress posts is that you can quickly split up content into multiple page articles.
This technique will force readers to click a link leading onto the next page. It is very simple to implement into any blog theme, so you won’t need to deal with a whole lot of customizations. In this article I want to introduce multiple page blog posts and how you can set them up for your own website.
Splitting Posts into Pages
Very much like the WordPress
<!--more--> symbol we also have something for splitting up page content. You use the
<!--nextpage--> syntax which WordPress will automatically determine inside the loop.
You can place these anywhere in your content which is the perfect solution. You may split up longer written posts, image galleries, slideshows, videos, basically anything. If you only have 2 or 3 indexes to split then you won’t need a whole long navigation block. This will not get in the way as much, and users can understand when there is simply too much content.
Beyond a certain threshold you’ll have to be careful not to lose readers. The navigation links can be split up to read Pages: 1, 2, 3, 4 and will continue in that fashion for each split. When reaching the limit of 7 or 8 it may be time to readjust your editing techniques!
Editing Your Theme
Now there is only one custom edit you will need to make on the post pages. This should go inside the loop for your current post, as it will need to display the previous/next links as required for your page numbers.
All you need to add is the wp_link_pages() function which appends the next links into your content. This leaves the decision up to each author as to where the links should split up and create new pages. It is tough because in the backend you’ll still be editing all of the content at once. But thankfully you shouldn’t need to go back in and edit things all too often.
Along with the brief tutorial above I want to share some other resources for multi-page WordPress posts. This isn’t a very broad topic for research, but it does have some nice material for authors and editors. be sure to check out a few of these links below if you’re interested in reading more.
- How to Implement Multiple Pages for your WordPress Posts and Pages
- Custom page-links for paginated posts
- Styling the nextpage tag for multi-paged posts
- How to Split Long WordPress Posts into Multiple Pages
- Styling Custom Page Links in WordPress
Keep in mind that publishing multiple pages for a single post can get very annoying for readers. It does increase the number of pageviews for your own website, but it comes at a cost. However there are plenty of situations where using multiple pages in a blog post is a good idea! Lots of content & images will push the scrollbar into a tiny rectangle and that’s no good for anybody. Try this out on your own WordPress site and see how it feels for a couple choice pieces.