Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter maghis

    (@maghis)

    thanks for the fast reply
    Bye

    If you use greenshady’s code above there is a ) missing in the first line:
    if ( is_page( 'about' )) {

    Enjoy !

    Hi minminteoh

    WordPress has integrated thread comments, around version 2.7.x and so if your theme does not support threaded comments, then it’s because i uses the old comment.php format (the loop).
    That structure has change ( the old one is still working )
    If you use 2.7.x wp version then you can change your comment.php and remove the threaded plugins.
    Just check some of the new themes, in the comment.php file.

    This is the new code:

    <ol class="commentlist">
        <?php wp_list_comments('avatar_size=40'); ?>
    </ol>

    Short and sweet! everything in processed by WP even pagination !
    You can visit: wp_list_comments codex

    here is the old code from classic theme:

    <?php if ( have_comments() ) : ?>
    <ol id="commentlist">
    
    <?php foreach ($comments as $comment) : ?>
    	<li <?php comment_class(); ?> id="comment-<?php comment_ID() ?>">
    	<?php echo get_avatar( $comment, 32 ); ?>
    	<?php comment_text() ?>
    	<p><cite><?php comment_type(_x('Comment', 'noun'), __('Trackback'), __('Pingback')); ?> <?php _e('by'); ?> <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite> <?php edit_comment_link(__("Edit This"), ' |'); ?></p>
    	</li>
    <?php echo $comment->user_id; ?>
    <?php endforeach; ?>
    </ol>
    
    <?php else : // If there are no comments yet ?>
    	<p><?php _e('No comments yet.'); ?></p>
    <?php endif; ?>

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