Title: Problem With Comments?
Last modified: August 18, 2016

---

# Problem With Comments?

 *  [_g_](https://wordpress.org/support/users/_g_/)
 * (@_g_)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/problem-with-comments/)
 * I installed wp and the initial comment was showing up @ the homepage. I made 
   a couple of more comments and they were showing up nicely but _maybe_ after I
   added a few plugins and edited my index.php the comments vanished.
    It shows 
   comments(2) but where it should show the comments…it says “No Comments yet.” 
   If I turn on the comment popup script and open the comments in the popup – they
   show perfectly fine. So am wondering if I did something from the admin panel 
   to mess it up, or is it something else? the wp-comments.php should be ok, as 
   it shows the comments in the popup. I added the rating plugin and it doesn’t 
   work properly and I think that the problem was caused due to that, but am not
   sure. I also have another problem… my each posts @ index.php show the whole comment
   form for each of the posts, I want it to only show comments(number of comments)
   and then on clicking that people should be able to see the comments form. I’d
   appreciate if someone can help me. Here is my present index.php <?php /* Don’t
   remove this line. */ require(‘./wp-blog-header.php’); //rating_the_form(‘process_only
   =1&rating_field=rating’); ?> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//
   EN” “[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt);
   <html xmlns=”[http://www.w3.org/1999/xhtml”&gt](http://www.w3.org/1999/xhtml”&gt);
   <head profile=”[http://gmpg.org/xfn/1″&gt](http://gmpg.org/xfn/1″&gt); <title
   ><?php bloginfo(‘name’); ?><?php wp_title(); ?></title> <meta http-equiv=”Content-
   Type” content=”text/html; charset=<?php bloginfo(‘charset’); ?>” /> <meta name
   =”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this
   for stats –> <style type=”text/css” media=”screen”> [@import](https://wordpress.org/support/users/import/)
   url( <?php echo get_settings(‘siteurl’); ?>/wp-layout.css ); </style> <link rel
   =”stylesheet” type=”text/css” media=”print” href=”<?php echo get_settings(‘siteurl’);?
   >/print.css” /> <link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″
   href=”<?php bloginfo(‘rss2_url’); ?>” /> <link rel=”alternate” type=”text/xml”
   title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” /> <link rel=”alternate”
   type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’);?
   >” /> <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” /> <?php
   wp_get_archives(‘type=monthly&format=link’); ?> <?php //comments_popup_script();//
   off by default ?> <?php wp_head(); ?> </head> <body> <div id=”rap”> <div id=”
   container”> <div id=”masthead”> <h1 id=”header”>“><?php bloginfo(‘name’); ?></
   h1> </div> <div id=”main”> <div id=”content”> <?php if ($posts) : foreach ($posts
   as $post) : start_wp(); ?> <?php the_date(”,'<h2>’,'</h2>’); ?> <div class=”post”
   > <h3 class=”storytitle” id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”
   Permanent Link: <?php the_title(); ?>”><?php the_title(); ?></h3> <div class=”
   meta”><?php _e(“Filed under:”); ?> <?php the_category() ?> — “> <?php the_author();?
   > @ <?php the_time() ?> <?php edit_post_link(); ?></div> <div class=”storycontent”
   > <?php the_content(); ?> <?php rating_the_form(‘process_only=0&rating_field=
   rating’); ?> </div> <div class=”feedback”> <?php wp_link_pages(); ?> <?php comments_popup_link(
   __(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?> </div> <!– <?
   php trackback_rdf(); ?> –> <?php include(ABSPATH . ‘wp-comments.php’); ?> </div
   > <?php endforeach; else: ?> <?php author(true, 5); ?> <?php endif; ?> </div>
   <div id=”menu”>
    -  <?php //get_links_list(); ?>
       <li id=”categories”><?php _e(‘Categories:’);?
      >
 *  -  <?php wp_list_cats(); ?>
 * </div>
    <div class=”clearer”> </div> </div> <div id=”rmenu”>
    -  <?php include(‘wp-user.php’); ?>
       <label for=”s”><?php _e(‘Search:’); ?></
      label> <form id=”searchform” method=”get” action=”<?php echo $PHP_SELF; ?>”
      > <div> <input type=”text” name=”s” id=”s” size=”15″ /> <input type=”submit”
      name=”submit” value=”<?php _e(‘Search’); ?>” /> </div> </form> <?php get_calendar();?
      > <?php _e(‘Syndication:’); ?>
 *  - 
    - 
 * </div>
    <div class=”clearer”> </div> <div id=”footer”> <p class=”credit”><!–<?
   php echo $wpdb->num_queries; ?> queries. <?php timer_stop(1); ?> seconds. –> 
   <cite><?php echo sprintf(__(“Powered by [**WordPress**](http://wordpress.org)“),
   __(“Powered by WordPress, state-of-the-art semantic personal publishing platform”));?
   ></cite> </div> </div> </div> </body> </html>

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

 *  Thread Starter [_g_](https://wordpress.org/support/users/_g_/)
 * (@_g_)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/problem-with-comments/#post-104878)
 * anybody?
    can someone tell me wot file is used to display the comments?
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/problem-with-comments/#post-104883)
 * The code above looks fairly okay – a link to your site would be helpful as we
   can then actually see the fault in action.

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

The topic ‘Problem With Comments?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Mark (podz)](https://wordpress.org/support/users/podz/)
 * Last activity: [21 years, 6 months ago](https://wordpress.org/support/topic/problem-with-comments/#post-104883)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
