Answers.Body: <p>You can use the <a href="https://verbb.io/craft-plugins/comments/v0/docs/developers/comment-model#methods" rel="nofollow noreferrer"><code>isFlagged()</code> method</a> to only display non-flagged comments:</p>
  
  <pre><code>{% set comments = craft.comments.all({
      limit: 10,
      status: 'approved'
  }) %}
  
  {% for comment in comments if comment.isFlagged() == false %}
      {{ comment.comment }}
  {% endfor %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-01T14:30:14.427Z
Answers.LastActivityDate: 2019-11-01T14:30:14.427Z
Answers.UserDisplayName: Jalen Davenport
Body: <p>Craft CMS V2.<br>
  Comment Plugin: <a href="https://verbb.io/craft-plugins/comments" rel="nofollow noreferrer">verbb comment</a></p>
  
  <pre><code>{% set comments = craft.comments.all({
      limit: 10,
      status: 'approved'
  }) %}
  
  {% for comment in comments %}
      {{ comment.comment }}
  {% endfor %}
  </code></pre>
  
  <p>This query fetches all approved comments including flagged (Comment marked as inappropriate) comments because flagged comment status is 'approved'. </p>
  
  <p>But I want to hide flagged comments from approved comments.</p>
  
Tags: <craft2><comments>
Title: Hide flagged (inappropriate) comments from comment list
ThreadText: # Hide flagged (inappropriate) comments from comment list
  
  (Asked by: username_0 on 2019-11-01)
  
  Craft CMS V2.  
  Comment Plugin: [verbb comment](https://verbb.io/craft-plugins/comments)
  
  ```
  {% set comments = craft.comments.all({
      limit: 10,
      status: 'approved'
  }) %}
  
  {% for comment in comments %}
      {{ comment.comment }}
  {% endfor %}
  
  ```
  
  This query fetches all approved comments including flagged (Comment marked as inappropriate) comments because flagged comment status is 'approved'.
  
  But I want to hide flagged comments from approved comments.
  
  **Tags:** craft2, comments
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-11-01. Score: 2 | Accepted answer
  
  You can use the [`isFlagged()` method](https://verbb.io/craft-plugins/comments/v0/docs/developers/comment-model#methods) to only display non-flagged comments:
  
  ```
  {% set comments = craft.comments.all({
      limit: 10,
      status: 'approved'
  }) %}
  
  {% for comment in comments if comment.isFlagged() == false %}
      {{ comment.comment }}
  {% endfor %}
  
  ```
  
  
  ---
  
  