title: Wordpress Else statement not working in $comments loop
body: <p>For my WP-theme I am displaying comments for each blog-post. Everything works except my <code>else</code> statement, I figured this is because every <code>$post</code> counts ALL <code>$comments</code> on the page, instead of just its own.</p>
  
  <p>So this is my php:</p>
  
  <pre><code>&lt;?php 
      $args = array(
          'post_id' =&gt; $post-&gt;ID,
          'status' =&gt; 'approve'
      );
      $comments = get_comments($args); ?&gt;
  
          if (get_comments_number($comments)==0) {
              wp_list_comments(array('per_page' =&gt; 10, // Allow comment pagination
              'reverse_top_level' =&gt; false //Show the latest comments at the top of the list ), $comments); 
              } else {
                  echo "&lt;i&gt;No Comments&lt;/i&gt;";
       } ?&gt;
  </code></pre>
  
  <p>I tried with two different foreach statements, first with $comments:</p>
  
  <pre><code>&lt;?php 
      foreach($comments as $comment) :
          if (get_comments_number($comments)==0) {
              wp_list_comments(array('per_page' =&gt; 10, // Allow comment pagination
              'reverse_top_level' =&gt; false //Show the latest comments at the top of the list ), $comments); 
              } else {
                  echo "&lt;i&gt;Inga kommentarer än&lt;/i&gt;";
       } ?&gt;
    } endforeach; ?&gt;
  </code></pre>
  
  <p>Using $posts:</p>
  
  <pre><code>&lt;?php 
          foreach($posts as $post) :
              if (get_comments_number($comments)==0) {
                  wp_list_comments(array('per_page' =&gt; 10, // Allow comment pagination
                  'reverse_top_level' =&gt; false //Show the latest comments at the top of the list ), $comments); 
                  } else {
                      echo "&lt;i&gt;Inga kommentarer än&lt;/i&gt;";
           } ?&gt;
        } endforeach; ?&gt;
  </code></pre>
  
  <p>The second just rendered "This post is password protected. Enter the password to view comments." instead of <code>include('intranet-comments.php');</code> (which is called after the comments). </p>