Forums
Home / Themes and Templates / Where are the comment permalinks generated?
(@matth)
14 years, 9 months ago
WordPress comment links are generated on this pattern: #comment-#####
#comment-#####
Where ##### is the id of the comment.
Where is this string generated?
(@mercime)
It’s generated in comments.php near the bottom of the template wherein wrapper div per comment is made e.g. in stripped form – see <?php comment_ID() ?>
<?php comment_ID() ?>
<div id="comment-<?php comment_ID() ?>"> <div class="commentdetails"> etc etc etc <?php comment_text() ?> </div>
(@matth)
14 years, 9 months ago
WordPress comment links are generated on this pattern:
#comment-#####
Where ##### is the id of the comment.
Where is this string generated?