I’m trying to add a number to each comment made on a post, but unfortunately, I just can’t get it right. I don’t want to use a plugin, because it shouldn’t be necessary.
Here is the code: https://pastebin.com/y1jm1Cm6
And this is what I have in my comments.php file (only the relevant part):
<ul class="commentlist">
<?php wp_list_comments('callback=custom_comments'); ?>
</ul>
Right now, with this setup, it shows the same number in every comment (1, 1, 1…), instead of 1, 2, 3…, for each corresponding comment.
Could you please help me with this?
Thanks in advance!
Best regards.
]]>Eg:
1) comment 1
2) comment 2
3) comment 3
4) reply to comment 3
5) reply to comment 3
6) reply to reply to comment 3
7) comment 4
8) comment 5
I saw there is a plugin that instead helps making the following numeration:
1) comment 1
2) comment 2
3) comment 3
3.1) reply to comment 3
3.2) reply to comment 3
3.3) reply to reply to comment 3
4) comment 4
5) comment 5
I am interested in the first kind of comments numbering… is it possible to do that? How?
Thank you
]]>I downloaded this plugin: https://granimpetu.com/numbered-comments/#english but even after inserting the code where they told me to, I cannot get it to work.
Someone suggested that I wrap my comments section in an ordered list and my comments in list item tags … but I have no idea how to do that?
I am css, html, php, whatever, challenged.
I searched for similar issues in these forums and found some threads, but no specific answers.
Can anyone help?
Thank you!
]]>Can numbers be attached to user comments? Not sure how it would work with the threaded comments. For example, perhaps if someone responded to “Comment #1” the threaded comment would be “Comment #1.a”.
Please point me in the right direction.
Kind regards,
Tim Kalbas
For replying a comment I use the plugin reply-to. When you press ‘Reply This Comment’ a link is made that looks like: @Username.
Username is a link to the comment that is replied to, based in the CommentID. I would like to have it look like this: #12 Username and then, so user know what the number is the comment is.
Each comment gets its number for the plugin numbered-comments. Now the problem is that I cannot connect the number of the comment to the comment that is replied.
Sounds familiar? Any suggestion? Please help!
]]>