All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: paginating subcategories [working]  (Read 508 times)

0 Members and 1 Guest are viewing this topic.

Offline irkevin

  • Newbie
  • *
  • Posts: 5
    • View Profile
  • WordPress Version: WordPress 2.8.x
  • Theme Name: Naruto
paginating subcategories [working]
« on: 01 December 2009, 21:58 »
I would just like to say that I managed to paginate subcategories, which should also work with categories if we modify the SQL a bit.

I'm willing to share the codes if someone ever need it.

What I did, was using a custom Pagination Class I wrote a while back.. Very simple class, with no complex code at all, and then, I created a custom SQL Query to fetch the subcategories in the Category I wanted to display, then I paginated those results.

I've also put some statement to check if permalink are activated. If permalink are activated, then it will use a nice and clean url, else it will use the default url with query string.

Then I had to add a simple rule in htaccess.


So, three simple step.

1) Using a pagination class
2) Create a custom SQL and paginate the results.
3) Add a rewrite rule in the htaccess to allow permalink to work with it.

If anyone need it, PM me, or reply here!

Regards,
Kevin

P.S: Be aware that I'm not talking about post pagination, but paginating subcategories when listing them on a seperate page!

Offline bypan6

  • Newbie
  • *
  • Posts: 1
    • View Profile
  • WordPress Version: WordPress 2.8.x
  • Theme Name: na
Re: paginating subcategories [working]
« Reply #1 on: 04 January 2010, 14:00 »
Hi Kevin - that's great that it's working.  I was wondering if you could share the code, since I've been trying to do the same thing.

Regards,
Brian