Forum

Thread tagged as: Question, Problem, Blog

Perch Blog Custom Filter by Categories

Hi

I am trying to filter blog posts by category

I have setup categories that are not blog specific. they are in new sets i have created. I have assigned blog posts to these categories.

I am trying to filter these blog posts by doing a match on categories. i.e. $latestTileMatch = perch_blog_custom(array('count' => '1', 'template' => 'post_hub_tile_blog.html', 'category-match' => 'all', 'sort-order' => 'RAND', 'category' => array('latest-locations/eastbourne/', 'latest-industry/creative-digital/')), true);

This returns nothing even though i have posts in both of these categories. Any ideas?

Thanks

Paul Langley

Paul Langley 0 points

  • 2 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What are your category sets called?