Forum

Thread tagged as: Question, Runway, Blog

perch_blog_custom - Filtering by multiple sections

Hi! I've got an array for a blog split out by sections. The code:

<?php  
                    perch_blog_custom(array(
                    'count' => 4,
                    'template' => 'news-feature-slider-4.html',
                    'sort' => 'postDateTime',
                    'section' => 'news',
                    'sort-order' => 'DESC',
                    ));
                    ?>

It seems that the 'section' filter can only be used for ONE section. How to I mix in more sections to filter the 4 slots? Tried a comma but that broke it.

Leigh C

Leigh C 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

That's right - you can only filter by one section.

Leigh C

Leigh C 0 points

Is there a way around this? Another options so I can mix sections?

Drew McLellan

Drew McLellan 2638 points
Perch Support

If you don't filter by section then you'll get posts from your sections mixed.