Simple pagination system in your WordPress plugins

33 thoughts on “Simple pagination system in your WordPress plugins”

  1. Hello, Tareq, I like your post. Great things are here for the people who loves to learn. I used pagination this way in my kolorob project at first. I had to learn it myself, but now I have changed the structure now, because I changed the uri structure of Kolorob from domain?page=1 to domain/page/2 to make it more SEO friendly. Thanks for your post.

  2. For my latest plugin, I needed the pagination option and found the solution here. Just want to know from you that, is it OK to use @ceil instead of only ceil? I was getting an error of ‘division by 0’ when found_posts is 0. Thanks for the very helpful tutorial.

  3. This tutorial is great, I have successfully added pagination into my plugin but the only problem I am facing is when I save options for the fields on one page all the options for the fields on all other pages are reset automatically. How can I fix this problem?

    I can post the code if you want. My plugin’s page looks like this: http://usmanali.net/plugin-page.png

    Your help will really be appreciated.

    Thank you!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.