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:
- wp-PageNavi
- add pagination for post in wordpress
- wordpress theme->pagination api
- how to add pagination to wordpress theme
- how to add pagination in wordpress page
- adding wp paginate ini single post
- adding pagination to wordpress
- add wordpress pagination
- add pagination to a single post
- wp-pagenavi qtranslate slug






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