Paginating a blog post is a contentious subject, believe it or not. Some people hate it; they feel like it disrupts the user experience. They find that users skip the “next page” button and feel like the post ends abruptly. This isn’t helped by the fact that many sites for years have used pagination as a way to squeeze out more ad views, by making thin slideshows with 20 images and single-paragraph “pages” and forcing the pages – and ads – to reload every time. These days when I see a site like that I look for a “view as one page” link and, if I don’t find it, I take a good long look to decide if it’s really worth the hassle of paging through.
On the other hand, some people really love pagination. It has some benefits, like the increased ad revenue if you use it tastefully.
Of the four, I would consider the last to be the most important. It’s almost a good enough reason to paginate a site that doesn’t need it. Thankfully, there are other ways to solve that problem that don’t involve changing site structure, so I’ll content myself with those for now.
Now, with WordPress, pagination is actually an easy process. You don’t realistically need a plugin at all. The reason I’m providing a list of plugins is because they bring additional features and page management to the table without compromising much. Any plugin is going to have a minor effect on your performance, but in general the ones I recommend won’t be a huge hit. It all depends on your configuration, though, so don’t come whining to me if they do; just track down and fix the issue that’s causing your hit.
The default way to introduce a page break into a WordPress article is to paste in a single tag. It’s incredibly easy. Just decide where in your article you want the page break to be. Then plug in this: <!–next page–>, and remove the space between next and page. You do have to be using the text view for WordPress’s compose window, not the visual view, but that’s not a huge deal to switch to for a single paste job if you prefer visual. Well, or you can use the page break button in the visual editor, which inserts the code in the text side of things. Whichever you prefer.
There are two ways to use pagination; making a slideshow without a slideshow plugin, or splitting up lengthy posts into more than one page. For the former, I recommend writing a couple paragraphs for each “slide” even if you don’t technically need to. It helps avoid accidental thin content penalties.
Google is smart enough to see the next page and previous page buttons and join all of the pages together for one bit of SEO value, but that doesn’t mean you can just snap in one sentence per page and hope it works. They’ll still look for thin content on individual pages, and they’ll look for abuse of ads via pagination.
The best practices for pagination involve using it in moderation, primarily. Excessive pagination uses up Google’s budget for site bandwidth and means they’ll spend less time indexing the more important parts of your site. It also can lead to pages 2+ not appearing in search, due to too-similar titles, not much content, and different URLs.
In any case, use new pages in moderation and if you really want a slideshow, just bite the bullet and download a lightbox slideshow plugin. They work better and don’t look terrible.
Sometimes you’ll try to insert the nextpage code and it won’t work. There’s a reason for that, and it generally has to do with your theme and/or the framework you’re running. WordPress needs a certain code hook in order for the nextpage code to work; if that hook doesn’t exist, the pagination won’t be parsed as code and thus won’t work.
Thankfully, the fix for this is also really easy. All you need is access to your hosted files and the ability to edit a php file. That’s not hard, by the way; notepad can do it, or Notepad++ if you’re feeling sassy.
First, find the single.php file in your installation. In that file, you will have to add this code:
If the file already has a section within the <?php ?> tags, you’ll just have to add the internal content. You can see an example here, in the WordPress codex. You don’t have to worry about parameters unless you want to customize how pagination works, and you’ll have to make sure it’s compatible with your theme if you do.
This is one of the most common pagination plugins out there, and it’s designed to work with most themes that aren’t built on some exotic framework or another. It includes more advanced pagination controls, beyond just page numbers and extended into blog category pagination as well. Normally a WordPress blog just stacks up posts in reverse chronological order and uses a set of newer post / older post links to let you browse through them. PageNavi adds additional features to this to give you more options.
While you wouldn’t expect a pagination plugin to require much updating, this one is well maintained, with an update within the last three months. It’s no surprise that it has racked up a 4.7 average star rating and over a million active installs.
You can customize the text for the page numbers, though you will have to use the pre-set wildcard code to generate accurate numbers. If you remove it you’re just replacing a dynamic element with a static element. You’re free to play with formatting and the use of symbols as much as you like, and you can completely customize the CSS through the use of an external CSS sheet.
This plugin is in limbo, and as such, is not as widely praised or maintained as PageNavi. Paginate was taken over by a new set of developers in December of 2014, and hasn’t been updated since, though they promised to keep it supported. It’s more what you would expect from the support for a pagination plugin; a more or less static functionality that only needs the occasional troubleshooting via the support forums.
The most interesting feature of this particular pagination plugin is the ability to add pagination to your comments section. Like PageNavi, you can use CSS to style them, but you will need to use the .wp-paginate-comments class in your CSS file to do it.
On the plus side, there’s really not a lot that can go wrong or stop working with this plugin. It’s pretty simple; install it, format it, and it works. It’s general enough that it should work for just about any theme, and you can CSS it to fit your site just fine.
This pagination plugin is very interesting, but it’s primarily made for the gallery-style or blog category-style numbering system. For simple two-page articles it’s not all that useful or unique.
What it does, in addition to adding all of the usual pagination configuration and CSS styling options, is adds an input box next to the page numbers at the bottom of a post. This box is cool; it allows the user to plug in a page number and click a button to go directly to that page.
See what I mean about it not being useful for shorter paginated posts? If you only have two pages, they don’t need that box. If you have 20, it’s a lot easier to get to page 13 using the box than it is to click “next page” 12 times, or click to jump five over and navigate from there.
It’s essentially just a cool little timesaving device that adds usability without sacrificing anything. When it comes in handy, it’s a welcome addition the user didn’t know they needed until they had it. When it’s unnecessary, it doesn’t get in the way or take up space.
The primary downside to this plugin is that it hasn’t been updated or supported in over two years. If something changes or breaks, you’re on your own. You either need to look into development to fix it yourself, find a fix online, or switch to another plugin that actually works.
This plugin does what you want out of basic WordPress pagination, but it adds on some additional features. In particular, it’s designed to work with WooCommerce, the biggest WordPress ecommerce shot plugin, to paginate and sort product pages. If you have a lot of products or product categories, don’t worry about organizing them; this plugin sorts them alphabetically for you.
You have different layout options for your sorting, you have options for case sensitivity, you have CSS functionality, and all sorts of additional features. You can even find a pro version on the amusingly-named WebsiteDesignWebsiteDevelopment.com site.
This one has been kept up to date, and the developer has 18 other plugins you can browse as well, running a wide range of functionality. It’s not the most high-profile or the most generally-useful plugin out there, but it doesn’t have to be. As you’ve seen, a pagination plugin needs to do something unique to get any attention. This one works with WooCommerce, and that’s its niche.
This is, fittingly enough, the most advanced pagination plugin on the list. It has a whole lot of additional features. For example, you can add title, get rid of numbers and just to next/prev, or even use image-based buttons in the pagination controls. It has shortcodes for WordPress formatting, and it works with Ajax so it’s fast and easy to load.
This one also has a pro version, and unlike Alphabetic, the pro version is actually significantly more robust. It adds three more button layouts and a bunch of features to those buttons. It’s also quite cheap; a single-site license is $12, which is quite reasonable for a WordPress plugin these days. With that license, you get a year of free upgrades and their site support forum as well as the free WordPress support.
In case you’re worried about abandonware, don’t be; it’s been kept up to date, with the latest update within the last month as of this writing.
I’m actually a little surprised that this plugin only has 2,000 active installations. Too many people are used to PageNavi to want to try something new, I suppose. Either way, though, I think this is probably the most deeply customizable of the pagination plugins, so it’s great for someone who wants more options than doing things manually.
The reason I include this plugin as a bonus rather than one of the main list items is because it doesn’t work with any general WordPress installation. It doesn’t add the normal pagination features. It only work with WordPress installations and themes running the FasterThemes framework.
Also noteworthy is the plugin description. You have to have a lot of confidence in the userbase of your plugin to be able to fill everything out with “not relevant” and leave it at that. Then again, maybe that’s why it has 0 ratings despite having 20,000 active installations. Who knows! Either way, it’s not a general use plugin. If you need it, you know you can use it; if you don’t, don’t try it.