Title: comments_template();
Last modified: August 19, 2016

---

# comments_template();

 *  [hairudy](https://wordpress.org/support/users/hairudy/)
 * (@hairudy)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/comments_template-1/)
 * Hi all blogger,
 * i have a simple question for you. my problem is, i just need my comment text 
   display only from my mainpage…
 *     ```
       <?php
                global $wp_query;
                $wp_query->is_home = false;
                $wp_query->is_single = true;
                comments_template();
                //comment_text();
                $wp_query->is_home = true;
                $wp_query->is_single = false;
       ?>
       ```
   
 * i just use this code…but i dont want display the form… just the text and name.
   thanks…

Viewing 1 replies (of 1 total)

 *  Thread Starter [hairudy](https://wordpress.org/support/users/hairudy/)
 * (@hairudy)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/comments_template-1/#post-1030728)
 * bump…

Viewing 1 replies (of 1 total)

The topic ‘comments_template();’ is closed to new replies.

## Tags

 * [comments_template](https://wordpress.org/support/topic-tag/comments_template/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [hairudy](https://wordpress.org/support/users/hairudy/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/comments_template-1/#post-1030728)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
