Forum

Thread tagged as: Question, Blog

Get intersection of multiple tags?

I understand that, using perch_blog_custom(), I can get blog posts from multiple tags by setting the value of ['tag'] in the parameter array to an array of tag slugs. I can also filter those tags using ['match'] = 'in'.

However, all these options return the union of the multiple tags. Is there any way to return the intersection of the tags instead? (i.e., posts tagged both #X AND #Y, instead of posts tagged either #X OR #Y)

Nicole Mirea

Nicole Mirea 2 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I don't believe so, no.