Support » Fixing WordPress » Custom query – combine AND / OR for categories

  • I’ve got my blog post categories grouped under parent categories. Let’s say:

    – Dog
    – Cat
    – Cow

    – HTML
    – MP3
    – DOC

    I have a page that will display filtered posts. Users should be able to select more than one category in each parent category (ie: Dog and Cat, and MP3), and while selections between parent categories should be “AND”, selections inside a parent category should be “OR”. So for the previous example, it should match any posts that are categorized “MP3” and either “Dog” or “Cat”.

    Is there a simple way to achieve this? I looked at but frankly, it confused the nuts off me.

    Thanks 🙂

  • The topic ‘Custom query – combine AND / OR for categories’ is closed to new replies.