Adding Pagination In WordPress Post And Pages

Well, you are writing lots of WordPress posts and pages in the daily basis. Some of them seems to be too long to load in only one page and want to extend those in pages. So, now you might have thought about is it really possible? Well it is, adding pagination in WordPress post and pages is quite easy and here we will describe about it.

Before stepping forward, we would like to discuss in which condition to want to create the pagination in posts and pages. Some of them are listed below:

  1. If your post or page content exceeds too much, ie, there is lots of content in that post or page created
  2. If you want to show many images in same page, then, your post might not load quickly. Hence, splitting it in pages would be of great use
  3. Similarly, for the blog posts, which have many company descriptions and want to categorize them properly

Those above case are some common cases, but, there are many other such cases which you want to split too. So, why to wait any more for adding pagination in WordPress posts and pages? Hence, for knowing about it, in order to create the pagination in your WordPress post and pages, you need to be in the correct line in the Visual Editor where you want the page break to appear. So, now to add the page break for the post and pages, you need to press the keys Alt + Shift + P keys at once and the page break appears there. The image after it has been applied is provided below:

page-break-added

Here in the above image you can see the PAGE BREAK appears when you press the keys at once which is provided above. This confirms that the pagination has occurred in your post as well as pages, if you have created. Now, while you apply this, then the output will be similar as shown below if the theme supports it:

page-break-front-end

In the above image, you can see that the content is shown in pages, ie, separated in the Pages context. It depends on how the theme has used to display it. But, if the theme does not display this at all, then, it may be missing the below code:

So, please add it to your page.php or single.php file as required, and then you can get the same result as ours, after adding pagination in your WordPress posts and pages. But, you need to create the child theme for making those customization work, since if you change the theme code directly then, the customization done will be lost in theme update. If you could not create the child theme on your own, then, here is the tutorial on creating the child theme.

If you have followed this tutorial properly and is able to do so, ie, adding pagination in your WordPress posts and pages, we are now confident that you can split the required pages of your site quite easily than before.

, , , , , , , , , , , , , ,

Post navigation

Bishal Napit

Bishal Napit is a WordPress theme developer from Tansen, Palpa, with a passion to learn more on WordPress.

Leave a Reply