相关使用描述get_comment_ID()被使用描述Walker_Comment::comment()Walker_Comment::html5_comment()Walker_Comment::ping() 源码查看源码 官方文档 更新日志版本描述0.71开始引入 使用示例示例1评论ID作为锚ID 将评论ID用作评论的锚点ID。 <div id="comment-<?php comment_ID() ?>">Comment by <?php comment_author() ?>: </div> <div class="comment-text"><?php comment_text() ?></div>