Forums

[resolved] Comments don't Show when I click on the "1 comment" link (3 posts)

  1. blueparukia
    Member
    Posted 1 year ago #

    I have never used WP before, and am making a template for my client. I am still on the default installation (1 post, 1 comment), and I can see the link saying "1 comment" but when I click on it, the link disappears, and the comment doesn't show.

    My index.php:

    <?php get_header(); ?>
    			<div id="body">
    				<div id="sidebar-left">
    				WidgetBucks Stuff
    </div>				<div id="content">
    
    											<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    
    				<div class="entry">
    					<?php the_content('Read the rest of this entry &raquo;'); ?>
    				</div>
    
    				<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link(); ?></p>
    			</div>
    
    		<?php endwhile; ?>
    
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    			<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    		</div>
    
    	<?php else : ?>
    
    		<h2 class="center">Not Found</h2>
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    	<?php endif; ?>				</div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    What is missing/wrong?

    Thanks,

    BP

  2. Kafkaesqui
    Moderator
    Posted 1 year ago #

    Is this the only 'page' template in your setup? No single.php?

    Anyway, whatever template is displaying the post needs this in it to include the comments and comment form:

    <?php comments_template(); ?>

    http://codex.wordpress.org/Include_Tags#The_Comments_Template

  3. blueparukia
    Member
    Posted 1 year ago #

    Thanks, it worked great :D

    BP

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.