Many times adding the custom pagination in wordpress blog is very important. In this article I will show you how to add the simple pagination in wordpress.
You need to open the your index.php file from wordpress theme and put following code in that file.
<div class="navigation">
<div class="alignleft"><? next_posts_link('« Previous') ?>
</div>
<div class="alignright"><? previous_posts_link('Next') ?>
</div>
</div>
If you want the pagination in single post then you can use the following code:
<?php next_posts_link($label , $max_pages); ?> <?php prev_posts_link($label , $max_pages); ?>
There are some very nice wordpress plugin available for wordpress pagination.
WP-PageNavi

PageNavi wordpress plugin is really nice. I personally like this plugin so much. With this plugin you can apply your custom css also.
Changing the CSS
If you need to configure the CSS style of WP-PageNavi, you can copy the pagenavi-css.css file from the plugin directory to your theme’s directory and make your modifications there. This way, you won’t lose your changes when you update the plugin.
Alternatively, you can uncheck the “Use pagenavi.css?” option from the settings page and add the styles to your theme’s style.css file directly.
Incoming search terms:
- how to add pagination in wordpress
- how to add pagination to wordpress widgets
- wordpress add pagination to posts
- how to add pagination view all in wordpress using php
- how to add pagination to wordpress posts pages
- how to add pagination to wordpress
- add pagination in wordpress post
- how can i add pagination to wordpress
- how can add pagination in wordpress page
- function that adds pagination to posts
- add wp pagination
- add pagination to wordpress posts of a category
- wordpress category add pagination






Pingback: How to add pagination in wordpress « digcms
Of course, what a great site and informative posts, I will add backlink – bookmark this site? Regards, Reader
I was just having a conversation over this I am glad I came across this it cleared some of the questions I had.
Interesting read, perhaps the best article iv’e browse today. We learn everyday cheers to you!
Awesome post. I so good to see someone taking the time to share this information