title: Wordpress Comment reply link does not appear
body: <p>I am using custom code to print the comments but the problem is whatever i do, i cant print the comment reply link under any comment....</p>
  
  <p>here is the code</p>
  
  <pre><code>    &lt;?php // Do not delete these lines
      if (!empty($_SERVER['SCRIPT_FILENAME']) &amp;&amp; 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
          die ('Please do not load this page directly. Thanks!');
  
      if (!empty($post-&gt;post_password)) { // if there's a password
          if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post-&gt;post_password) {  // and it doesn't match the cookie
              ?&gt;
  
              &lt;p class="nocomments"&gt;This post is password protected. Enter the password to view comments.&lt;/p&gt;
  
              &lt;?php
              return;
          }
      }
  
      /* This variable is for alternating comment background */
      /*$oddcomment = 'class="alt" ';*/
      $oddcomment = 'alt';
  ?&gt;
  
  &lt;!-- You can start editing here. --&gt;
  
  &lt;?php if ($comments) : ?&gt;
      &lt;h3 id="comments"&gt;&lt;?php comments_number('No Responses', 'One Response', '% Responses' );?&gt; to &amp;#8220;&lt;?php the_title(); ?&gt;&amp;#8221;&lt;/h3&gt;
  
      &lt;ol class="commentlist"&gt;
  
      &lt;?php foreach ($comments as $comment) : ?&gt;
  
          &lt;!--&lt;li &lt;?php echo $oddcomment; ?&gt;id="comment-&lt;?php comment_ID() ?&gt;"&gt;--&gt;
          &lt;li class="&lt;?php echo $oddcomment; ?&gt; &lt;?php if ($comment-&gt;comment_author_email == get_the_author_email()) { echo 'author_comment'; } ?&gt;" id="comment-&lt;?php comment_ID() ?&gt;"&gt;
  
              &lt;?php echo get_avatar( $comment, 32 ); ?&gt;
  
              &lt;cite&gt;&lt;?php comment_author_link() ?&gt;&lt;/cite&gt; Says:
              &lt;?php if ($comment-&gt;comment_approved == '0') : ?&gt;
              &lt;em&gt;Your comment is awaiting moderation.&lt;/em&gt;
  
              &lt;?php endif; ?&gt;
              &lt;br /&gt;
  
              &lt;small class="commentmetadata"&gt;&lt;a href="#comment-&lt;?php comment_ID() ?&gt;" title=""&gt;&lt;?php comment_date('F jS, Y') ?&gt; at &lt;?php comment_time() ?&gt;&lt;/a&gt; &lt;?php edit_comment_link('edit','&amp;nbsp;&amp;nbsp;',''); ?&gt;  
              &lt;/small&gt;
  
  
  
              &lt;?php comment_text() ?&gt;
  
              &lt;div class="reply"&gt;
       &lt;?php comment_reply_link( array ( 'reply_text' =&gt; 'Reply this comment' ) );
  ?&gt;
  
  &lt;/div&gt;
  
          &lt;/li&gt;
  
      &lt;?php
          /* Changes every other comment to a different class */
          /*$oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';*/
          $oddcomment = ( empty( $oddcomment ) ) ? 'alt' : '';
      ?&gt;
  
      &lt;?php endforeach; /* end for each comment */ ?&gt;
  
      &lt;/ol&gt;
  
   &lt;?php else : // this is displayed if there are no comments so far ?&gt;
  
      &lt;?php if ('open' == $post-&gt;comment_status) : ?&gt;
          &lt;!-- If comments are open, but there are no comments. --&gt;
  
       &lt;?php else : // comments are closed ?&gt;
          &lt;!-- If comments are closed. --&gt;
          &lt;p class="nocomments"&gt;Comments are closed.&lt;/p&gt;
  
      &lt;?php endif; ?&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>But when i use wp_list_comments functions i can see the reply link appear automatically i am using wordpress 3.2.1</p>