TW Pagination

This is a simple and flexible pagination plugin which allow better navigation on your WordPress site.


  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. In some 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')) 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')) tw_pagination_comments(); ?>


  1. Configure the TW Pagination, if necessary, from the TW Pagination option in the Settings menu
  2. Modify tw-pagination.css file in plugin’s directory


This plugin is free! Click here to download tw-pagination plugin.

22 Responses to TW Pagination

  1. Goranka says:

    A really neat plugin for improving visitor experience on the blog/site.

  2. Jovi says:

    Hi, thanks for the plugin. I just needed this for the comments page and it works!

  3. vijai says:

    thanx for plugin..but it show the same posts for all page links..plz help me..

    • Igor says:

      Sorry, but I do not understand what are you talking about? 🙂
      Can you explain it better, or give me a link of your website?

  4. Angel says:

    Hello this editing to me is advance mode. lol
    Im looking at the code and did the changes but after I saved it it gave me an error which I went back to the old code. Can you help me look what i need to edit since i have a custom theme name Doover.

    thanks and great job just what i was looking for

  5. Sahil Arora says:

    Hello, I have problems using this plugin. Can u tell me what to do??? I have installed the plugin
    and activated but whenever I click on to page number on my website’s homepage, it shows the main homepage always. I have also provided my website here. Please help me.

  6. Igor says:


    You must do everything as is defined in ‘Implement’ section on this page.
    I do not know how you got these numbers on the bottom, but you should add this code in your loop file:

    I think that you did not add this code, and pagination number are not created via my plugin. Check your code where this HTML is:

    Instead of this and everything that is inside of that you should add my code.


    • Sahil Arora says:

      Thank you But there is no loop.php in my theme. Can you tell me why is it so??? and is there any other option as I don’t have loop.php???


      • Igor says:

        I do not know your theme structure. 🙂
        I told you which code to change with my, so go through each file in your theme and find that div.

        • Sahil Arora says:

          OMG!!  😀 It means I will have to check out my theme thoroughly. I will go through it and see if it works but if it doesn’t work then can you tell any other way for that?? 🙂 and Thankx

          • Igor says:

            There is no other way.
            You must add PHP code to your theme if you want this plugin to wors. 🙂
            Take a look on your index.php or home.php or category.php there must be something that output that page numbers on your website.
            I showed you in which div that data is printed, so you must find that div.

  7. ETS 2 Mods says:

    A friend recommended this plugin for me, he said it’s great. I’m installing it now to see how it works 😀

  8. Sahil Arora says:

    Ok!! I will check it if this works.Thank you Igor 🙂

  9. I am actually thankful to the owner of this website who has shared this
    impressive piece of writing at here.

  10. ZoomyMan says:


    Great plugin!

    How can I order links to be generated in alphabetical order? And is there any way to set it to ‘order’=> ‘ASC’ ?Thanx.

  11. hemant says:


    I am not able to use your plugin as i can not found the code which need to be replaced in my theme.

    I am using pyramid theme. my website link is Please help.

    • Igor says:


      I can not help you if you do not understand structure of your theme. Try to exam structure of your index.php or category.php file. There must be some loop that prints posts. So you should add code after that loop.
      Only possible solution is to send me FTP for your website so I can try to add code for plugin.


  12. sm용품 says:

    Can I just say that after finding WP Pagination | WordPress Pagination plugin | Vučković | Web Development by Igor Vučković on
    Mambo, what a relief to uncover a person who ultimately understands what they’re writing about on the web. You certainly realize how to bring a problem to light and make it crucial. Many more people should really look at this and see this side of the story. I can’t believe you’re not more prevalent, because you most really possess the gift.

  13. adela says:

    Dear Sir

    I am using your pagination plugin and it works great in the categories page but it dosent work in my homepage, I tried changing all the code I found about navig but it just dosent work for me, could you help me with this?

    It shows the page numbers but it redirects all the time to the front page


    Kind regards


  14. vijai says:

    thanks for this display paging if i click the second page it dis

    play not found page to solve it please help me..

Leave a Reply to hemant Cancel reply

Your email address will not be published. Required fields are marked *