Answers.Body: <p>You can do like</p>
  <pre><code>{% set entries = craft.entries.section('section').level(1).id(['not', entry.id, 95]).all() %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-04T11:07:14.563Z
Answers.LastActivityDate: 2022-02-04T11:07:14.563Z
Answers.UserDisplayName: Bhashkar Yadav
Body: <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>
  
Tags: <craft3><entry><query>
Title: Exclude 2 entries from a query
ThreadText: # 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() %}
  
  ```
  
  
  ---
  
  