Languages: English • 日本語 (Add your language)
The comments_link template tag displays the URL to the current post's comments. This tag must be within The Loop, or the loop set up for comments.
Use get_comments_link to retrieve the value.
<?php comments_link(); ?>
<a href="<?php comments_link(); ?>"> Comments to this post </a>
This tag has no parameters.
comments_link()
is located in wp-includes/comment-template.php
.