0
這裏是我的single.php
:comment_form()不工作
<?php get_header(); ?>
<?php
if (have_posts()) :
while (have_posts()) : the_post();
the_content();
comments_template();
endwhile;
endif;
?>
<?php get_footer(); ?>
這是我的comments.php
:
<h2>Comments</h2>
<?php
wp_list_comments();
comment_form(array('title_reply'=>'Leave a Comment',
'comment_notes_before'=>'',
'comment_notes_after'=>''));
?>
wp_list_comments()
工作正常,但comment_form()
回報什麼。我怎樣才能讓評論表單出現?
您是否驗證過正在使用single.php模板? – Jrod
是的。正如我所說,wp_list_comments()的作品,唯一的地方comments.php是引用來自single.php。 –