Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress wp_list_comments()和自定义注释表单?_Wordpress - Fatal编程技术网

Wordpress wp_list_comments()和自定义注释表单?

Wordpress wp_list_comments()和自定义注释表单?,wordpress,Wordpress,我正在创建一个基于“响应”主题的儿童游戏。我在page.php中定制了评论表单,使用所描述的技术删除了“网站”文本框 主题中的原始page.php具有: <?php responsive_entry_after(); ?> <?php responsive_comments_before(); ?> <?php comments_template( '', true ); ?> <?php responsive_comments_after(); ?&g

我正在创建一个基于“响应”主题的儿童游戏。我在page.php中定制了评论表单,使用所描述的技术删除了“网站”文本框

主题中的原始page.php具有:

<?php responsive_entry_after(); ?>
<?php responsive_comments_before(); ?>
<?php comments_template( '', true ); ?>
<?php responsive_comments_after(); ?>
我将其替换为我的自定义代码:

<?php responsive_entry_after(); ?>
<?php responsive_comments_before(); ?>
<?php $fields = array(
          <snipped for clarity; this part works>                             
                          );

 $commentParams = array(
    'title_reply' => 'Leave a Comment.' ,
    'comment_notes_before' => 'My custom text.',
    'comment_notes_after' => 'More custom text.',
    'fields' => apply_filters('comment_form_default_fields', $fields)
    );

comment_form($commentParams); ?>
<?php responsive_comments_after(); ?>
我发现我的自定义表单按预期工作,但页面上不再列出注释。我给wp_list_comments添加了一个调用,但仍然没有得到评论列表

如何显示注释并使用自定义注释表单?我相信定制表单的需要排除了评论模板的使用,不是吗


非常感谢

您确定正在存储注释,即在“管理”面板的“注释”部分中找到注释以及您添加的所有字段。是。当我回到最初的响应主题时,会列出注释。