Wordpress评论 - 评论后的名称

时间:2014-03-13 16:29:18

标签: wordpress comments

我正在尝试修改Wordpress中显示评论的方式..我无法找到在评论消息后输出评论者姓名的方法。我怎么能创造这个?也许是jquery?也许编辑评论php?当我打开comments.php文件

时,我看不到这样做的方法

看看:

<div class="clear"></div>

<?php

// Do not delete these lines   if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    die ('Please do not load this page directly. Thanks!');

  if ( post_password_required() ) { ?>      <div class="help">
        <p class="nocomments">This post is password protected. Enter the password to view comments.</p>     </div>   <?php
    return;   } ?>

<!-- You can start editing here. -->

<?php if ( have_comments() ) : ?>       <h5 id="comments" class="h5"><?php comments_number('<span>No</span> Responses', '<span>One</span> Response', '<span>%</span> Responses' );?> to &#8220;<?php the_title(); ?>&#8221;</h5>

    <nav id="comment-nav">      <ul class="clearfix">
            <li><?php previous_comments_link() ?></li>
            <li><?php next_comments_link() ?></li>      </ul>   </nav>      <ol class="commentlist">        <?php wp_list_comments('callback=qs_comments'); ?>  </ol>       <nav id="comment-nav">      <ul class="clearfix">
            <li><?php previous_comments_link() ?></li>
            <li><?php next_comments_link() ?></li>      </ul>   </nav>
    <?php else : // this is displayed if there are no comments so far ?>

    <?php if ( comments_open() ) : ?>
        <!-- If comments are open, but there are no comments. -->

    <?php else : // comments are closed ?>  <!-- If comments are closed.
-->     <!--<p class="nocomments">Comments are closed.</p>-->

    <?php endif; ?>

<?php endif; ?>


<?php if ( comments_open() ) : ?>

<?php comment_form(); ?>

<?php endif; // if you delete this the sky will fall on your head ?>

这是他们现在的表现方式:查看下面的图片

enter image description here

0 个答案:

没有答案