Forums

Cannot get comment form to show in blog (1 post)

  1. WMS Group
    Member
    Posted 2 years ago #

    Hi,

    I am not sure how to get the comment form to show in the blog I have customized. Below is the code for the blog itself. I have removed all of the page design code to keep it simple. Would I also need to include the comments.php code?

    Thanks.

    <?php if (have_posts()) : ?>
    	<?php $temp_query = $wp_query; ?>
    	<?php query_posts('category_name=blog&showposts=99999999'); ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    <?php the_date('','<h2>','</h2>'); ?>
    
    <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    	 <h3 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    	<div class="meta"><?php _e("Filed under:"); ?> <?php the_category(',') ?> — <?php the_tags(__('Tags: '), ', ', ' — '); ?> <?php the_author() ?> @ <?php the_time() ?> <?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; Newer Posts'), __('Older Posts &raquo;')); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic