Categories Display on Paginated Blog...

  • I've got about 25 categories in a set called 'blog'. To display them along side a list of blog posts as "Categories" I'm doing this:

    PHP
    1. <?php
    2. perch_categories([
    3. 'count' => '12',
    4. 'set' => 'blog',
    5. ]);
    6. ?>

    Looks good on page 1, I only want to show the first 12. But then on the subsequent pages the rest of the tag show and after a few more pages no tag show. How do I show the same categories on all the paginated pages too.

  • Generally you should be able to disable pagination with the paginate option:


    PHP
    1. perch_categories([
    2. 'count' => 3,
    3. 'paginate' => false,
    4. 'set' => 'blog',
    5. ]);


    If that does not work, you can use the start option, which disables pagination:


    PHP
    1. perch_categories([
    2. 'count' => 3,
    3. 'start' => 1,
    4. 'set' => 'blog',
    5. ]);