• Resolved nashproductions

    (@nashproductions)


    Hello,
    The date for the each comment is recurring as the same date that the post was made – even though there are a few days inbetween.

    I also am having trouble allowing my logged in author image to show up for me (the author) when replying to comments, so feel something is up with the code. I have tried reverting back to the original and testing most of my plug ins one by one (the issue was not happening before, just sort of came after my last post)

    To see the page I am referring to you can check here

    Thanks!

Viewing 14 replies - 1 through 14 (of 14 total)
  • Can you pastebin the comments.php code and let us take a look at it?

    https://pastebin.com/

    Thread Starter nashproductions

    (@nashproductions)

    Hi thanks for the reply

    I’ve never used pastebin before but I’m hoping this is what I do?

    https://pastebin.com/qpUBb83V

    Thats right. Your problem is at line 32:

    <div class="comm-date"><small><em>
            <?php the_time('m.d.y') ?>
            </em></small></div>

    Replace that with:

    <div class="comm-date"><small><em>
     <?php comment_date(); ?>
    </em></small></div>

    Thread Starter nashproductions

    (@nashproductions)

    Amazing ! Thank you so much!

    Any chance you might know why the visitor image is showing up when I am logged in as the author?

    I posted another query about it but have not had response yet, figured I’d ask you.

    Thanks again.

    Line 28 reads like this:

    <div class="pic"><?php echo get_avatar( $comment, 80, $default = $urlHome . '/images/default_avatar_visitor.gif' ); ?></div>

    If no notice, the “Default” is set to an image in your theme. Is that what you are referring to?

    Thread Starter nashproductions

    (@nashproductions)

    yes, I have an image for visitor and author in my theme – but it was supposed to be set up to have when the author is logged in her image coordinates. Maybe I need a different set up for this?

    The author’s thumbnail is being set by groupon and her email address. So if her email account on record with wordpress is “[email protected]”, she would need to visit https://www.gravatar.com and upload that image, using her email address as the account.

    Thats the same system that this forum uses, and why you can see my picture over there <—

    Does that help?

    Thread Starter nashproductions

    (@nashproductions)

    I think it does.

    I am just curious – when I am logged into my dashboard and then I visit my site it has me logged in as ‘taramiller'(who is the author) . Is there a way to have that set up as the author image? Like in reading, or some other setting?

    Sorry I’m not understanding what you mean. You mean have the avatar called by the user that’s logged in?

    Thread Starter nashproductions

    (@nashproductions)

    yes – I think that’s what I mean. sorry I realized that sentence was not very clear after sending.

    The author who is taramiller, shows up as logged in automatically when she is in her dashboard, or just checking the site at all. I have done a previous site using a similar theme and the author’s image automatically is recognized when logged in and the image default_avatar_author.gif is used.

    I feel as though something is off with the comment loop recognizing that it is the author replying.

    Hoping this is making some sense…

    So are you looking to make the authors comments look different?

    https://www.ads-software.com/extend/plugins/highlight-author-comments/

    Thread Starter nashproductions

    (@nashproductions)

    Hey TM – as it turns out that whole highlight author comments thing never worked. And it’s put me back to thinking there has to be a problem with my code somewhere.
    It is recognizing the author correctly (put the yellow bg), but the image is still showing up as the visitor one?

    … oy vey.

    Thread Starter nashproductions

    (@nashproductions)

    Aha! it’s fixed! turns out the problem was that the email address listed in the wordpress profile was incorrect.

    Of course.

    Thanks again, and sorry to bug again!

    Awesome, glad you got it fixed! And you’re not bugging at all, its why we’re here: to help!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Comment Date showing same as post date’ is closed to new replies.