Title: comment_form function not displaying the comments form
Last modified: November 5, 2021

---

# comment_form function not displaying the comments form

 *  Resolved [rv1994](https://wordpress.org/support/users/rv1994/)
 * (@rv1994)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/comment_form-function-not-displaying-the-comments-form/)
 * Created a plugin and inside plugin index file i am calling for the function `
   comment_form()` but it is not displaying it on front.
 * **any suggestions on what am i doing wrong here?**
 * Code :
 *     ```
       add_action('wp_footer','comment_form_gkstat');
       function comment_form_gkstat(){
           if(is_front_page()){
               comment_form();
           }
       }
       ```
   
    -  This topic was modified 4 years, 7 months ago by [rv1994](https://wordpress.org/support/users/rv1994/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [rv1994](https://wordpress.org/support/users/rv1994/)
 * (@rv1994)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/comment_form-function-not-displaying-the-comments-form/#post-15040006)
 * Just allow the comments for that specific page in wordpress dashboard.

Viewing 1 replies (of 1 total)

The topic ‘comment_form function not displaying the comments form’ is closed to 
new replies.

## Tags

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

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 1 participant
 * Last reply from: [rv1994](https://wordpress.org/support/users/rv1994/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/comment_form-function-not-displaying-the-comments-form/#post-15040006)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
