
关于WordPress文件及其使用方法的综合指南
the_comment ( No parameters )
the_comment – 这个函数用来显示一个单独的评论。它接收一个评论对象作为参数,并输出该评论的HTML标记。
在评论循环中遍历评论索引。
function the_comment() { global $wp_query; if ( ! isset( $wp_query ) ) { return; } $wp_query->the_comment(); }