Plugin Directory

Test out the new Plugin Directory and let us know what you think.

TW Pagination

TW Pagination is a simple and flexible pagination plugin which provides users with better navigation on your WordPress site.

Install and Activate

  1. Unzip the downloaded tw-pagination zip file
  2. Upload the tw-pagination folder and its contents into the wp-content/plugins/ directory of your WordPress installation
  3. Activate TW Pagination from Plugins page


For posts pagination:

1) Open the theme files where you'd like pagination to be used. Usually this is the loop.php file. For older version of WordPress, you may need to update the index.php, archive.php and search.php files.

2) Replace your existing previous_posts_link() and next_posts_link() code block with the following:

<?php if(function_exists('tw_pagination')) 

For comments pagination:

1) Open the theme file(s) where you'd like comments pagination to be used. Usually this is the comments.php file.

2) Replace your existing previous_comments_link() and next_comments_link() code block with the following:

<?php if(function_exists('tw_pagination_comments')) 


1) Configure the TW Pagination settings, if necessary, from the TW Pagination option in the Settings menu

2) The styles can be changed with the following methods:

  • Add a tw-pagination.css file in your theme's directory and place your custom CSS there
  • Add your custom CSS to your theme's styles.css
  • Modify the tw-pagination.css file in the tw-pagination plugin directory

Note: The first two options will ensure that TW Pagination updates will not overwrite your custom styles.

Requires: 3.0 or higher
Compatible up to: 4.1.14
Last Updated: 2 years ago
Active Installs: 4,000+


5 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.