mhsouthpaw,
Can I ask a little help on placing the counter? I'm scarely a programmer and it's been about 10 years since I've wrote my last script and it's a bit tricky for me to sort out the Loop..
I'm trying to use a custom comment display function, here it is:
function mytheme_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>
<?php $commentNo = 1; ?>
<div class="comment" id="comment-<?php comment_ID() ?>">
<div class="commentinfo">
<div class="number"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php comment_ID() ?></a></div><div class="author"><a name="<?php comment_ID() ?>"></a><?php printf( get_comment_author_link() ) ?></div>
<?php if ($comment->comment_approved == '0') : ?>
Your comment is awaiting moderation.')
<?php endif; ?>
<div class="time"><?php printf(__('%1$s,%2$s'), get_comment_date(), get_comment_time()) ?></div>
</div>
<div><?php comment_text() ?></div>
</div>
<?php
}
And here is the code in comments.php that calls this function:
<?php wp_list_comments('type=comment&callback=mytheme_comment'); ?>
If I put the counter declaration inside the function, it's assigned "1" value on every loop, so the counter doesn't work. If I put it outside, it's not seen in the function at all. Please can you tell me what should I do to get this numbering work?
Thanks