Forum

Thread tagged as: Question, Addons, Blog

archive blogs by category

Hello

I have a fairly straightforward site displaying a summary panel of blog posts in the lhs column. It shows archive posts by year. So if I click on 2008, it shows me stories for 2008. This is an early site and I've not strayed far from Perch examples.

Should it be straightforward to just show blog posts (by year as above) for a certain predetermined or known post category?

Any pointers welcome.

Cheers - Mark

mark buckley

mark buckley 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Sure:

perch_blog_custom(array(
    'filter' => 'postDateTime',
    'match' => 'eqbetween',
    'value' => '2008-01-01 00:00:00, 2008-12-31 23:59:59',
    'category' => 'my-category',
));

Great, many thanks.

Cheers - Mark