Title: Comments &#8211; First Page
Last modified: August 19, 2016

---

# Comments – First Page

 *  Resolved [joelongstreet](https://wordpress.org/support/users/joelongstreet/)
 * (@joelongstreet)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/comments-first-page/)
 * I’m trying to display my comments on the first page of my blog. There should 
   be one post, and all the comments. I can’t figure out why this isn’t working.
   index.php and single.php are exactly the same but single is displaying the post
   and index isn’t. What am I overlooking here?
 * Thanks for any help,
 * Joe

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

 *  [krembo99](https://wordpress.org/support/users/krembo99/)
 * (@krembo99)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/comments-first-page/#post-937645)
 * Are they the same on front end or the actual code ?
 *  Thread Starter [joelongstreet](https://wordpress.org/support/users/joelongstreet/)
 * (@joelongstreet)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/comments-first-page/#post-937705)
 * actual code
 *  [krembo99](https://wordpress.org/support/users/krembo99/)
 * (@krembo99)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/comments-first-page/#post-937928)
 * did you checked the general Settings -> Reading to see if index displays posts?
 *  [nitetalker](https://wordpress.org/support/users/nitetalker/)
 * (@nitetalker)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/comments-first-page/#post-938077)
 * Joe, this is happening because of these lines in wp-includes\comment-template.
   php:
 * `
    if ( ! (is_single() || is_page() || $withcomments) ) return;
 * They’re in the function comments_template. The source code comments for that 
   function give the explanation.
 * To get the effect you want, replace the first of those two lines to
 * `
    if ( ! (is_single() || is_page() || $withcomments) || is_home() )
 * Of course, it’s desirable to avoid hacks. If I can find a plug-in toaccomplish
   this , I’ll try to remember to post a link to it here.
 *  [nitetalker](https://wordpress.org/support/users/nitetalker/)
 * (@nitetalker)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/comments-first-page/#post-938078)
 * Joe, this is happening because of these lines in wp-includes\comment-template.
   php:
 *     ```
       if ( ! (is_single() || is_page() || $withcomments) )
          return;
       ```
   
 * They’re in the function comments_template. The source code comments for that 
   function give the explanation.
 * To get the effect you want, replace the first of those two lines to
 * `if ( ! (is_single() || is_page() || $withcomments) || is_home() )`
 * Of course, it’s desirable to avoid hacks. If I can find a plug-in toaccomplish
   this , I’ll try to remember to post a link to it here.
 *  Thread Starter [joelongstreet](https://wordpress.org/support/users/joelongstreet/)
 * (@joelongstreet)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/comments-first-page/#post-938085)
 * NICE! Exactly what I was hoping to accomplish. Thanks for your help,
 * Joe
 *  [tmroverhotmailcom](https://wordpress.org/support/users/tmroverhotmailcom/)
 * (@tmroverhotmailcom)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/comments-first-page/#post-938100)

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

The topic ‘Comments – First Page’ is closed to new replies.

## Tags

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

 * 7 replies
 * 4 participants
 * Last reply from: [tmroverhotmailcom](https://wordpress.org/support/users/tmroverhotmailcom/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/comments-first-page/#post-938100)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
