Title: Comment threads
Last modified: August 20, 2016

---

# Comment threads

 *  Resolved [Van Hooreweder](https://wordpress.org/support/users/hoore/)
 * (@hoore)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/comment-threads/)
 * Happy new year all.
 * I put the next code in the comments.php of a theme based on the result of an 
   online theme styling tutorial, found on page [http://codex.wordpress.org/Migrating_Plugins_and_Themes_to_2.7/Enhanced_Comment_Display](http://codex.wordpress.org/Migrating_Plugins_and_Themes_to_2.7/Enhanced_Comment_Display)
 *     ```
       if ( have_comments() ) : ?>
       <h4 id="comments"><?php comments_number('No Comments', 'One Comment', '% Comments' );?></h4>
       <ul class="commentlist">
       	<?php wp_list_comments(); ?></ul>
       <div class="navigation">
       <div class="alignleft"><?php previous_comments_link() ?></div>
       <div class="alignright"><?php next_comments_link() ?></div>
       </div>
       <?php else : // this is displayed if there are no comments so far ?>
       	<?php if ( comments_open() ) :
       		// If comments are open, but there are no comments.
       	else : // comments are closed
       	endif;
       endif;
       ```
   
 * It should give classes to the comments along their depth. But I always get “depth-
   1”, also when it should be depth-2 or depth-3.
 * In wp-admin in settings >> discussion “Enable threaded (nested) comments 5 levels
   deep” is checked.
 * Do I maybe need to add something in the functions.php file?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Van Hooreweder](https://wordpress.org/support/users/hoore/)
 * (@hoore)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/comment-threads/#post-3319443)
 * I’m using the old form, maybe the cause is there.
 *  Thread Starter [Van Hooreweder](https://wordpress.org/support/users/hoore/)
 * (@hoore)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/comment-threads/#post-3319447)
 * Resolved! I replaced the old form by:
 * `<?php comment_form(); ?>`
 * found on [http://codex.wordpress.org/Function_Reference/comment_form](http://codex.wordpress.org/Function_Reference/comment_form)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Comment threads’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 1 participant
 * Last reply from: [Van Hooreweder](https://wordpress.org/support/users/hoore/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/comment-threads/#post-3319447)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
