WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Can Post Comments... But Can't See Them (3 posts)

  1. Anonymous
    Unregistered
    Posted 6 years ago #

    Hi everyone,

    I've installed WP v 2.5.1 on a site for a client, and I'm having trouble getting comments to show up. They post just fine and show up in the database, but I must've messed something up - you can't see the comments when you click the comment link.

    The blog is up here: http://www.vqueen.com/content/

    If you click the RSS link, the comments are there... and it knows that there are 2... can anybody give me any clues as to where I should be troubleshooting this? Comments.php is copied straight from the Classic theme, and my index template looks like this:

    <?php
        $title = '';
        $head_elements = '';
        $body_class = 'sm';
    
        include_once('../inc/blog.header.inc.php');
    	include_once('../inc/side.inc.php');
    ?>
    <div id="main">
    
    <h2>VQueen Blog</h2>
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <div class="post" id="post-<?php the_ID(); ?>">
    	 <h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    	<div class="meta" style="font-size:.8em;"><?php // _e("Filed under:"); ?> <?php // the_category(',') ?><?php // the_tags(__('Tags: '), ', ', ' — '); ?> Posted at <?php the_time() ?> on <?php the_date(''); ?> by <?php the_author() ?>.
    	<?php edit_post_link(__('Edit This')); ?></div>
    
    	<div class="storycontent">
    		<?php the_content(__('(more...)')); ?>
    	</div>
    
        <div class="feedback">
    		<?php wp_link_pages(); ?>
    		<?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    	</div>
    
    </div>
    
    <?php comments_template(); // Get wp-comments.php template ?> 
    
    <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
    
    <?php posts_nav_link(' — ', __('&laquo; Older Posts'), __('Newer Posts &raquo;')); ?>
    
    </div><!--/main-->
    			</div><!--/mwrap-->
    			<div id="mainBot"></div><!--/mainBot-->
    <?php include_once('../inc/xtra.inc.php'); ?>
    <?php include_once('../inc/footer.inc.php'); ?>

    Um, also, the author isn't showing up (what's on the live site is hard coded for now). If anybody happens to see something obvious there, that'd be amazing as well. I've been troubleshooting this thing for awhile now and just can't see anything weird going on! Help would be extremely awesome. Thanks for reading :)

  2. haochi
    Member
    Posted 6 years ago #

    The comments_template() tag is supposed to be in the single.php file.

  3. Anonymous
    Unregistered
    Posted 6 years ago #

    Yay! Thanks haochi, that was totally it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags