当我使用下面的代码时,除了回复链接之外,所有内容都会显示出来!有人知道我做错了什么吗?我希望链接显示“回复”一词
现场示例:http://themeforward.com/demo2/?p=1948#commentlist
在我的标题中:
<?php
if ( is_singular() && comments_open() && get_option(\'thread_comments\') )
wp_enqueue_script( \'comment-reply\' );
?>
在注释中。php:<?php if($comments) : ?>
<?php foreach($comments as $comment) : ?>
<li id="comment-<?php comment_ID(); ?>">
<?php if ($comment->comment_approved == \'0\') : ?>
<p>Your comment is awaiting approval</p>
<?php endif; ?>
<?php if(function_exists(\'get_avatar\')) { echo get_avatar($comment, \'60\'); } ?>
<cite class="fn"><?php comment_author_link(); ?> on <?php comment_date(); ?> at <?php comment_time(); ?></cite>
<?php echo comment_reply_link(array(\'depth\' => $depth, \'max_depth\' => $args[\'max_depth\'])); ?>
<?php comment_text(); ?>
</li>
<?php endforeach; ?>
<?php else : ?>
<p>No comments yet</p>
<?php endif; ?>