<p>I found it here: <a href="https://docs.craftcms.com/v3/dev/element-queries/entry-queries.html#parameters" rel="nofollow noreferrer">https://docs.craftcms.com/v3/dev/element-queries/entry-queries.html#parameters</a></p>

<pre><code>        type: ['not', 'webinarsLanding', 'caseStudyLanding'],
</code></pre>

CC BY-SA 4.0
2018-10-23T17:54:19.330Z
2018-10-23T17:54:19.330Z
Danielle Frappier
<p>Here is my query:</p>

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

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

<entry-type><query>
exclude array of entry types in query
# exclude array of entry types in query

(Asked by: username_0 on 2018-10-23)

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.

**Tags:** entry-type, query


---

## 1 answers

### Answer by username_0 on 2018-10-23. Score: 2

I found it here: https://docs.craftcms.com/v3/dev/element-queries/entry-queries.html#parameters
        type: ['not', 'webinarsLanding', 'caseStudyLanding'],


---

