Title: comments.php not working
Last modified: August 19, 2016

---

# comments.php not working

 *  [Rocknation](https://wordpress.org/support/users/rocknation/)
 * (@rocknation)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/commentsphp-not-working/)
 * I want the name and e-mail for my comments.php (based on WordPress Default) file
   to be required. I only get a wp-comments-post.php error message when I submit
   with a blank comment box.
 * Here’s what the code says:
 *     ```
       <p><input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
       <label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
   
       <p><input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
       <label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>
       ```
   
 * Am I missing a file? Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/commentsphp-not-working/#post-1392523)
 * Admin/Settings/Discussion. Tick “Comment author must fill out name and e-mail”.
 *  Thread Starter [Rocknation](https://wordpress.org/support/users/rocknation/)
 * (@rocknation)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/commentsphp-not-working/#post-1392600)
 * I knew I was overlooking _something_…thanks to you, I can now use the file as
   a guestbook, which will give me one less plug-in to babysit. Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘comments.php not working’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Rocknation](https://wordpress.org/support/users/rocknation/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/commentsphp-not-working/#post-1392600)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
