Answers.Body: <pre><code>{% set entries = craft.entries({
    section:        'blog',
    order:          'postDate',
    limit:          5,
    id:             'not ' ~ entry.id
  }) %}
  </code></pre>
  
  <p>or</p>
  
  <pre><code>{% set entries = craft.entries({
    section:        'blog',
    order:          'postDate',
    limit:          5,
  }).id('not ' ~ entry.id) %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-07-19T18:50:23.730Z
Answers.Text: Thanks for the reply. I tried that but then I get the error: "Variable "entry" does not exist".
Answers.UserDisplayName: Niall Thompson
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-07-19T18:52:21.963Z
Answers.Text: What is the *current entry* that you are trying to exclude?
Answers.UserDisplayName: Marion Newlevant
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-07-19T18:54:12.767Z
Answers.Text: Ah, I understand. I'm editing the wrong template :(
Answers.UserDisplayName: Niall Thompson
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-07-19T18:47:38.737Z
Answers.LastActivityDate: 2014-07-19T18:47:38.737Z
Answers.UserDisplayName: Marion Newlevant
Body: <p>How can I exclude the current entry when I've structured my syntax like this?</p>
  
  <pre><code>{% set entries = craft.entries({
    section:        'blog',
    order:          'postDate',
    limit:          5,
  }) %}
  </code></pre>
  
Tags: <entries>
Title: Exclude Current Entry
ThreadText: # Exclude Current Entry
  
  (Asked by: username_0 on 2014-07-19)
  
  How can I exclude the current entry when I've structured my syntax like this?
  
  ```
  {% set entries = craft.entries({
    section:        'blog',
    order:          'postDate',
    limit:          5,
  }) %}
  
  ```
  
  **Tags:** entries
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2014-07-19. Score: 39 | Accepted answer
  
  ```
  {% set entries = craft.entries({
    section:        'blog',
    order:          'postDate',
    limit:          5,
    id:             'not ' ~ entry.id
  }) %}
  
  ```
  
  or
  
  ```
  {% set entries = craft.entries({
    section:        'blog',
    order:          'postDate',
    limit:          5,
  }).id('not ' ~ entry.id) %}
  
  ```
  
  > **Comments:**
  > **username_0**: Thanks for the reply. I tried that but then I get the error: "Variable "entry" does not exist".  
  > **username_1**: What is the *current entry* that you are trying to exclude?  
  > **username_0**: Ah, I understand. I'm editing the wrong template :(  
  
  ---
  
  