I'm trying to add author, email fields to comment form but the comment form does not change. It is always showing a default template with only the comment field and submit button.
Could this be a caching issue or it is reading the comment form template from another directory?
I am using this code in my page template :
$comments_args = array(
'label_submit' => __('コメント送信'),
'title_reply' => __('コメント登録'),
'fields' => apply_filters('comment_form_default_fields', array(
'author' =>
'<p class="comment-form-author">'.
'<input id="author" class="blog-form-input" placeholder="Your Name* " name="author" type="text" value="'.esc_attr($commenter['comment_author']).
'" size="30"'.$aria_req.
' /></p>',
'email' =>
'<p class="comment-form-email">'.
'<input id="email" class="blog-form-input" placeholder="Your Email Address* " name="email" type="text" value="'.esc_attr($commenter['comment_author_email']).
'" size="30"'.$aria_req.
' /></p>',
)),
'comment_notes_after' => '',
'comment_field' => '<p class="comment-form-comment"><label for="comment">'._x('Comment', 'noun').
'</label><br /><textarea id="comment" name="comment" aria-required="true" cols="75"></textarea></p>',
);
comment_form($comments_args);