<p>You can do like</p>
<pre><code>{% set entries = craft.entries.section('section').level(1).id(['not', entry.id, 95]).all() %}
</code></pre>

CC BY-SA 4.0
2022-02-04T11:07:14.563Z
2022-02-04T11:07:14.563Z
Bhashkar Yadav
<p>I know this question has been asked before but I'm still not able to solve the issue in this particular situation.
I want to remove one fixed(#95) entry id and the current entry.id from the query.</p>
<pre><code>{% set entries = craft.entries.section('section').level(1).id('and, not ~ entry.id, not 95').all() %}
</code></pre>
<p>The result being only the fixed (#95) entry.id is removed from the query.</p>

<craft3><entry><query>
Exclude 2 entries from a query
# Exclude 2 entries from a query

(Asked by: username_0 on 2022-02-04)

I know this question has been asked before but I'm still not able to solve the issue in this particular situation.
I want to remove one fixed(#95) entry id and the current entry.id from the query.
{% set entries = craft.entries.section('section').level(1).id('and, not ~ entry.id, not 95').all() %}

The result being only the fixed (#95) entry.id is removed from the query.

**Tags:** craft3, entry, query


---

## 1 answers

### Answer by username_1 on 2022-02-04. Score: 2 | Accepted answer

You can do like
{% set entries = craft.entries.section('section').level(1).id(['not', entry.id, 95]).all() %}


---

