Link to specific comments

  • ducadibaionette

    #50247

    Hello.
    I’d love if each comment had its own link, so that people could link to specific comments, but I’m not sure how to obtain it.

    I see in inc/comments.php this:

    'meta' => sprintf( __( '%1$s on %2$s <span class="time">at %3$s</span>', 'graphene' ), '<span class="comment-author">' . graphene_comment_author_link( $comment->user_id ) . '</span>', '<span class="comment-date">' . get_comment_date(), get_comment_time() . '</span>' )

    I tried to modify it, but it didn’t work…

    'meta' => sprintf( __( '%1$s <a href="comment-<?php comment_ID(); ?>">on %2$s <span class="time">at %3$s</span></a>', 'graphene' ), '<span class="comment-author">' . graphene_comment_author_link( $comment->user_id ) . '</span>', '<span class="comment-date">' . get_comment_date(), get_comment_time() . '</span>' )

    I obtained a link, but without the real comment ID: there was literally
    my post URL plus comment-<?php comment_ID(); ?>

    🙁

    Admin

    Syahir Hakim

    #50264

    Thanks for the feedback. We’ll add the link in the next theme update.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Do NOT follow this link or you will be banned from the site!