Forum

Thread tagged as: Question, Blog

Paginating Categories

How do I paginate categories? I have a client with a ridiculous amount of blog categories. My page template looks like:

perch_blog_categories([
    'include-empty'=>true, 
    'sort'=> 'countValue', 
    'sort-order'=>'DESC',
    'paginate'=>'true',
    'count'=>'20',
    'start'=>1,
    'page-links'=>'true'
]);

And I'm just using the basic blog categories template.

The Pagination markup from https://docs.grabaperch.com/docs/templates/pagination/ doesn't seem to work, even after updating the namspace to categories.

Phil Smith

Phil Smith 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Remove the start option - it overrides the pagination, as you're setting a custom start position rather than letting pagination control it.