No need for a plugin. Edit your comments.php and add this line at the top (just below return; endif;)
$commentcount=1;
Then in your comments list, where you want to display the number, just add:
<?php echo $commentcount++; ?>
Thread Starter
neczy
(@neczy)
Sweet, that did the trick, thanks.
You could have also done:
<ol>
<li>A comment</li>
<li>Another comment</li>
<li>Yet another comment</li>
</ol>
Which produces:
- A comment
- Another comment
- Yet another comment
[edit] Whoops, missed how you wanted to do div’s instead of a ordered list. However, you coulda still done this and controlled the look of your li’s instead of using div’s.
Example: click here
My comments are encased in li’s, not div’s. [/edit]
I did not succeed to implement this solution.
Though, I am not a programmer.
Digging through the forum, I found this thread with a more simple solution that worked for me.
.commentlist li {
margin: 15px 0 3px;
padding: 5px 10px 3px;
<strong>list-style: decimal;</strong>
}
Comment numbering with stylesheet