• Resolved utnalove

    (@utnalove)


    Hello, I would like to have a number for each comment, where also replies are numbered as if they were stand-alone comments and not replies.

    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

Viewing 15 replies - 1 through 15 (of 27 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    What theme are you using (link please)?

    Thread Starter utnalove

    (@utnalove)

    Link to my blog or to the theme?
    This is the theme: https://gorillathemes.com/demo/celebritypress/
    This is the blog

    Thread Starter utnalove

    (@utnalove)

    It looks like Greg’s Threaded Comment Numbering can make what I need, but I have tried… too much php… can’t make it :/

    Moderator keesiemeijer

    (@keesiemeijer)

    This is a premium theme and I don’t know how they show the comments. Have you tried their forums?

    Thread Starter utnalove

    (@utnalove)

    Yes, I asked and I am waiting for a reply, but it may take some time. I would like to have the numbers by the end of today, because of some contests and a post with more than 800 comments… people need to check what was their comments number and very few people want to count hundreds of comments ??

    I hope this excerpt helps…

    <div class="navigation">
    		<div class="alignleft"><?php previous_comments_link() ?></div>
    		<div class="alignright"><?php next_comments_link() ?></div>
    	</div>
    
      <div class="commWrap png">
        <ol class="commentlist">
          <?php wp_list_comments('type=comment&avatar_size=64'); ?>
        </ol>
      </div>
      <div class="commFoot png"></div>
    Moderator keesiemeijer

    (@keesiemeijer)

    Are these comments paged or are all comments on the same page?

    Thread Starter utnalove

    (@utnalove)

    They are all on the same page, you can see it here: https://glamourina.pl/konkurs-wygraj-sukienke/

    Moderator keesiemeijer

    (@keesiemeijer)

    Try it with this in your theme’s functions.php:

    and change <?php wp_list_comments('type=comment&avatar_size=64'); ?> to <?php wp_list_comments('type=comment&callback=mytheme_comment'); ?>

    Thread Starter utnalove

    (@utnalove)

    should I add that code that you gave me in the bottom of the functions.php?

    And if I replace that code in the comments.php will it remove the gravatar? I would like to have the gravatar as well.

    Moderator keesiemeijer

    (@keesiemeijer)

    Yes that is ok. just before the end php end tag ?> (if you have one)

    Thread Starter utnalove

    (@utnalove)

    Will it remove the gravatar?

    Thread Starter utnalove

    (@utnalove)

    Oh, I did it!! I didn’t replace the gravatars, but the images changed ??
    I don’t have the monsterids anymore, I have the white/blue gravatar image ??

    Thread Starter utnalove

    (@utnalove)

    And another thing….
    intestead of this numbering:

    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

    it is using this numbering:

    1) comment 1
    2) comment 2
    3) comment 3
    3) reply to comment 3
    3) reply to comment 3
    3) reply to reply to comment 3
    4) comment 4
    5) comment 5

    How can I change it so that I have back the type=comment&avatar_size=64 and having the numbering so that every comment, also replies to comments will count as a new comment and get a new number?

    Moderator keesiemeijer

    (@keesiemeijer)

    Change this in the functions.php code echo get_avatar($comment,$size='64',$default='<path_to_url>' ); to echo get_avatar($comment,$size='64');

    Thread Starter utnalove

    (@utnalove)

    Excellent one big point is resolved :)))
    What about the second one?

    https://glamourina.pl/konkurs-wygraj-sukienke/
    on that link there are 829 comments, I would like to have all of them numbered from 1 to 829…

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘Numbered comments – how to?’ is closed to new replies.