Paginating means dividing your content into different pages. After reading this tutorial, you will know how to paginate content in WordPress. The methods taught in this article include built-in options and an external plugin.
All examples and instructions in this article include screenshots, making it easy for any WordPress level user to follow them.
How to paginate in WordPress:
To begin, open the post or page you want to paginate, dividing it into different pages.
In my case, the article seems as shown in the screenshot below.
The image below shows the live view of the post.
Open the post or page to paginate in the WordPress dashboard and press the upper right corner icon with three dots (Black arrow).
In the displayed menu, press the option Code editor.
Add the following code where you want the content to be splitted. The article will be divided where you place it, allowing the reader to continue to the next page with the rest of the content.
Press the Update button to apply changes.
That’s how the content seems now. As you can see, the reader needs to press the number 2 to continue to the second page.
You can divide your content in as many parts as you want. In the following example, I will divide the content into 4 pages by adding <!–nextpage–> three times, as shown below.
And as you can see, now the article is divided into 4 pages.
How to paginate in WordPress using a plugin:
This section explains how to paginate in WordPress using the plugin WP-Paginate.
While using plugins isn’t recommended when there is a built-in method, as explained in the previous section, the advantage of this plugin is you can customize your pagination, including it’s position, look and more, as I will show below. You also can predefine in what pages the pagination will show up.
To begin, login to your WordPress dashboard and in the left menu, place your mouse pointer over Plugins, then press the Add New option (Plugins>Add New).
In the plugins installation screen, type “paginate” in the keyword search field. When the plugin WP-Paginate shows up, press the Install Now button.
Once the plugin is installed, enable it by pressing the Activate button.
After enabled, in the dashboard left menu, place your mouse pointer over Settings and press the WP-Paginate option (Settings>WP-Paginate).
Now you need to configure the plugin. The first section, named General includes the following options:
- Pagination Label: Here, you define the label which will appear with the pagination.
- Previous Page: Here, you define the HTML text or symbol to pass to the previous page; in this case, the symbol is «.
- Next Page: Same as above but for the next page, in this case, the character to pass to the next page is ».
The second section of the configuration screen contains options that don’t need a description. Here you can define on what pages the pagination will show up; you can mark the first option to show it on all pages.
The Position option allows you to fix the pagination above the content, below it, or both above and below.
The last option in this section Hide Standard Pagination allows you to hide the default theme pagination; this is convenient to avoid showing pagination twice.
The Appearance section allows you to choose the font, and among different looks, select the one you want.
The last section allows you to do the HTML markup before and after the pagination. You also can hide it, add a trailing slash and define the number of pages/links shown in the pagination, among additional options.
Remember to press the Save Changes button to apply them.
In my case, the pagination seems as shown on the page below (I selected the Above position).
That’s how you can add custom pagination to your site content.
As you can see, pagination in WordPress is pretty easy. Any WordPress level user can do it using both methods explained above. The market offers additional plugin alternatives you can find in the keyword search field of the plugin installation screen; feel free to try any of them. Proper pagination can improve users’ experience when visiting your website. Remember, while plugins allow you to customize WordPress features, filling your site with many plugins; may decrease your performance and, therefore, your traffic; some themes already include the option to customize pagination. You also can edit pagination manually using HTML and CSS. Feel free to contact us for any inquiry on this topic.
Thank you for reading this tutorial showing how to paginate in WordPress; I hope it was useful. Keep following us for more professional WordPress tips and tutorials.