How To Add Pagination In WordPress Post Without Plugin?
December 25th, 2016 | by Ravi Chahar || 5 Comments |
For the better SEO, people try their best to minimize bounce rate of their websites. There are many ways for that.
But if you have a long post then it would be great if you split that post into multiple pages. Yes, it can be done by adding the pagination.
In this tutorial, you will learn the way to add pagination in WordPress post without plugin.
I know, most of the people would search for the plugins. But you know what, WordPress codes seem so tricky but easy to implement.
What Should You Do To Split WordPress Into Multiple Pages?
There is nothing much to do.
While writing the post in your WordPress post editor, you have to add a few words.
First of all, use the text editor instead of the visual editor and then add the code shown below.
Use this code from where you want to split your post. There is nothing technical in it. You can split one post into many pages. The choice is yours.
What Would You Do If You Don’t See The Pagination Even After Adding it?
Well, there is another permanent solution for this problem.
Do you know a little bit about the WordPress theme file structure? There are a few files from which, the single.php file handles the output of your all the single posts.
The file may vary according to the nature of coding. Every developer has something different to provide. But still, in most of the cases, single.php is the file you should edit.
Whether you open this file from the cPanel or directly from your WordPress admin panel, the choice is yours.
Go to appearance>>editor>>single.php.
Add a line of code in the end of the loop which is handling the single post.
There is another code which works the same as this. But you don’t need to use that. This would work for you.
If you want to edit the default pagination then there are a few parameters which can be passed in this tag. For more details, you can visit the style page.
Can You Now Add Pagination In WordPress Post?
Forget about plugins and start doing everything with the codes. I know the non-techie people would get afraid.
But there is nothing techie, which can break your website. The first method can be used by everyone. In some cases when the WordPress theme doesn’t support the pagination then the manual action is required.
I hope you can follow the first step. And if you face any problem, feel free to clear your doubts.
Nice article Ravi. I never knew it is that simple to add pagination in a post.
Thanks for a meaningful read.
Regards,
Shafi Khan.
Hey Shafi,
I am glad that I could make it simple for you. You just have to use one simple code and you’re done.
Thanks for stopping by.
~Ravi
Hello Ravi,
I am back on your blog. It’s a very helpful post as it’s the best way to add pagination. Less no. of plugins are good for WordPress blog. Thus, it’s a very helpful information for many bloggers.
Excellent Post!
I spent the last 3 hours trying to make other tutorials work and this worked in seconds.
So simple and useful, worked perfectly, Thanks a lot!
Hey Nikhil,
It’s good to know that you got what you were searching for.
Thanks for stopping by.
~Ravi