Thread tagged as: Question, Blog

Blog: Filtered archive

Hello Perchers,

I'm building an archive page and trying to list all blog posts filtered to ignore posts with a specific value set to a custom input.

The code below works well to display a list of filtered posts, but how would I go to replicate the "perch_blog_date_archive_months" and "perch_blog_categories" functions with such a filter?

        'template'   => 'post_in_list.html',
        'sort'       => 'postDateTime',
        'sort-order' => 'DESC',

Using latest version of Perch and Blog App.

Thank you

Stéphane Mégécaze

Stéphane Mégécaze 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What sort of output are you trying to achieve?

Output similar to the archives of the blog when "perch_blog_date_archive_months" and "perch_blog_categories" are used:

Year (number of posts) - Month 1 (number of posts) - Month 2 (number of posts) - ...


Tags - tag 1 (number of posts) - tag 2 (number of posts) - ...