This is a simple and flexible pagination plugin which allow better navigation on your WordPress site.
Install
- Unzip the downloaded
tw-paginationzip file - Upload the
tw-paginationfolder and its contents into thewp-content/plugins/directory of your WordPress installation - Activate TW Pagination from Plugins page
Implement
For posts pagination:
- Open the theme files where you’d like pagination to be used. Usually this is the
loop.phpfile. In some version of WordPress, you may need to update theindex.php,archive.phpandsearch.phpfiles. - Replace your existing
previous_posts_link()andnext_posts_link()code block with the following:
<?php if(function_exists('tw_pagination')) tw_pagination(); ?>
For comments pagination:
- Open the theme file(s) where you’d like comments pagination to be used. Usually this is the
comments.phpfile. - Replace your existing
previous_comments_link()andnext_comments_link()code block with the following:
<?php if(function_exists('tw_pagination_comments')) tw_pagination_comments(); ?>
Configure
- Configure the TW Pagination, if necessary, from the TW Pagination option in the Settings menu
- Modify
tw-pagination.cssfile in plugin’s directory
Download
This plugin is free! Click here to download tw-pagination plugin.