• Resolved Jason

    (@jwenlee)


    I tried to comment on the page with different users. However, it only displays the name of one of the authors for every comment post even though that author only posted one of the comments.

    If you open the developer tools, you can see the comments aren’t being posted by the same user:
    http://www.weaveagent.com/testvendor

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey there,

    It seems author of this theme used the wrong function, they’re grabbing the article author rather than the comment author. You can open this file up:

    /weblizar/core/comment-box/comment-function.php

    And change this:

    <span><?php the_author();?></span>

    To this:

    <span><?php comment_author(); ?></span>

    This will then get the comment author for you.

    Hope this helps, have a great day! 🙂

    Thread Starter Jason

    (@jwenlee)

    Good catch. It worked! Thank you for the fast response!

    Hi Timothy Bowers,

    Apologies ,version will be updated soon. 🙂

    Thanks

    That’s awesome, thanks for letting us know, I’m glad I could help. 🙂

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

The topic ‘Comment Authors Not Displaying Correctly’ is closed to new replies.