2

Here is my query:

{% set resources = craft.entries({
    section: 'resources',
    type: 'not caseStudyLanding'
    relatedTo: filterParams,
    orderBy: 'postDate desc'
}) %}

I would like to exclude two entry types (caseStudyLanding and webinarsLanding) but I have been struggling with the syntax.

2

I found it here: https://docs.craftcms.com/v3/dev/element-queries/entry-queries.html#parameters

        type: ['not', 'webinarsLanding', 'caseStudyLanding'],

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.