• 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

    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)
Viewing 2 replies - 1 through 2 (of 2 total)

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