Forum
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?
<?php
perch_blog_custom(array(
filter'=>'pr',
'match'=>'neq',
'value'=>'press',
'template' => 'post_in_list.html',
'sort' => 'postDateTime',
'sort-order' => 'DESC',
));
?>
Using latest version of Perch and Blog App.
Thank you
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) - ...
and:
Tags - tag 1 (number of posts) - tag 2 (number of posts) - ...