<p>You need to start with <code>and</code>, and put <code>not</code> in front of each ID...</p>

<pre><code>{% for entry in craft.entries.section('boardOfDirectors').id('and, not 12, not 18') %}
</code></pre>

CC BY-SA 3.0
2016-03-31T17:33:04.423Z
I've tried this (and some other variants) and its just not working...
Britchie
CC BY-SA 3.0
2016-03-31T17:39:34.220Z
Looks like I skipped a step... Try putting `and` at the beginning. See [this other SE post](http://craftcms.stackexchange.com/a/12781/45) for more information.
Lindsey D
CC BY-SA 3.0
2016-03-31T17:24:42.260Z
2016-03-31T17:38:37.860Z
2016-03-31T17:38:37.860Z
Lindsey D
<p>I want to show a list of entries that excludes two or more specifically by id.</p>

<p>This works:</p>

<pre><code>{% for entry in craft.entries.section('boardOfDirectors').id('not 12') %}
</code></pre>

<p>This does not:</p>

<pre><code>{% for entry in craft.entries.section('boardOfDirectors').id('not 12,18') %}
</code></pre>

<p>Is this possible?
Anyone know the correct syntax?</p>

<entries>
Syntax for using 'not'?
# Syntax for using 'not'?

(Asked by: username_0 on 2016-03-31)

I want to show a list of entries that excludes two or more specifically by id.
This works:
{% for entry in craft.entries.section('boardOfDirectors').id('not 12') %}

This does not:
{% for entry in craft.entries.section('boardOfDirectors').id('not 12,18') %}

Is this possible?
Anyone know the correct syntax?

**Tags:** entries

---

## 1 answers

### Answer by username_1 on 2016-03-31. Score: 7 | Accepted answer

You need to start with and, and put not in front of each ID...
{% for entry in craft.entries.section('boardOfDirectors').id('and, not 12, not 18') %}

> **Comments:**
> **username_0**: I've tried this (and some other variants) and its just not working...  
> **username_1**: Looks like I skipped a step... Try putting `and` at the beginning. See [this other SE post](http://craftcms.stackexchange.com/a/12781/45) for more information.  

---

