Title: comment_form() Function Not Working
Last modified: August 29, 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/)
 * 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)

 *  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/#post-9454830)
 * Please Help Me.
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/comment_form-function-not-working/#post-9455919)
 * Please post a link to a page demonstrating the problem. You’ll need to allow 
   people not logged in to submit comments until someone can examine the page. The
   comments may go to moderation, that’s fine. None of this really matters if the
   submits are not working anyway. But we do need to examine your comment form on
   a live site.
 * Please don’t bump your topic, it doesn’t have the effect you hope it will. Your
   topic is not moved any higher in the list. By bumping, you remove yourself from
   the no replies list, which most regulars who are in the best position to help
   you use to find those still needing help. You’ve now fallen off of most people’s“
   radar”. If that’s not enough reason, it’s also against our [guidelines](https://wordpress.org/support/guidelines/#do-not-bump-posts).

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: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 2 replies
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/comment_form-function-not-working/#post-9455919)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
