Discussion on PHP Pagination Class


ImadJomaa supports this item


85 comments found.

if im buy it, did u help me setup it? btw im using PDO for database.

Hi Jazuly,

The package does include detailed documentation and an example implementation file that you may follow along. However. I currently do not offer installation services, but of course, always happy to answer any questions you may have or address any issues you may find.

Thanks! Imad Jomaa.

Hi, I’ve just noticed that when I post a new item that pushes the page that was there to spot number 2 which isn’t great for SEO as the page content is forever changing with the new post.

How would i set it to show the latest post first but not change the order of the pages that were already posted. So it would probably be DESC LIMIT but how would I set the pagination to be the last post? Hope that makes sense? Thanks

Hi zaas0921,

That’s definitely possible. Make sure to set the query to desc limit and you’ll be good to go. With regards to setting the pagination to be the last post, are you referring to having it start at the last page? If so, this is not currently supported by the package but will consider it for an update.

Thanks! Imad.

Hi, If total page number is only 1, it shows nothing. I would like to show “1” even there is no more pages. is it possible?? Thaks!

Hi pbch3,

Definitely possible. You’ll need to modify lines 136 and 225 in `class_pagination.php` removing the total check from the conditionals.

Cheers, Imad.

Hi Imad, I’m wanting to do a modification, I need to add a variable ‘sector’ into the pagination. I thought I might be able to do it via pagination_templates.php but that won’t accept php as such. Where would I add to get another variable into the pagination?



Please ignore the Hello?? message that was meant elsewhere.

Hi, please disregard the original request, I was thinking about it the wrong way and don’t need to add vars to pagination. Thanks

Hi Mark,

Glad to hear you got it figured out.

Cheers, Imad.

this will support php 7