Title: comment_form() Function Not Working
Last modified: August 30, 2017

---

# comment_form() Function Not Working

 *  [emigfx](https://wordpress.org/support/users/emigfx/)
 * (@emigfx)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/comment_form-function-not-working-2/)
 * Hello,
    I am now working on developing WordPress template, and I am having this
   problem : **comment_form()** Not working with me !
    - They appear but do not work
    - Fill out the data and do not send it
 * **comments.php File :**
 *     ```
       <?php
   
           // Whether the current post is open for comments.
   
           if (comments_open()) {
               // Display comments
               wp_list_comments( array(
               	'callback' => 'tuhfa_comments_template_calback'
               ) );
   
               comment_form();
   
           }else {
   
               echo "Closed";
   
           }
   
       ?>
       ```
   
 * Please Help Me.

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

 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/comment_form-function-not-working-2/#post-9455373)
 * Hey there,
 * Weird, can you post the link to a such post with comment form so I could take
   a look?
 *  Thread Starter [emigfx](https://wordpress.org/support/users/emigfx/)
 * (@emigfx)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/comment_form-function-not-working-2/#post-9455847)
 * [@hardeepasrani](https://wordpress.org/support/users/hardeepasrani/)
    Hi Hardeep,
 * Yes, it’s Weird,
    Now I am Developing the template on Localhost Server.

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

The topic ‘comment_form() Function Not Working’ is closed to new replies.

## Tags

 * [comment](https://wordpress.org/support/topic-tag/comment/)
 * [Comments](https://wordpress.org/support/topic-tag/comments/)
 * [comment_form](https://wordpress.org/support/topic-tag/comment_form/)

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 2 replies
 * 2 participants
 * Last reply from: [emigfx](https://wordpress.org/support/users/emigfx/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/comment_form-function-not-working-2/#post-9455847)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
