• qbs

    (@qbs)


    hello again,
    I want to list all of the comments for one post under it’s content
    this is my code for single.php:

    <!--item -->
                <?php if (have_posts()) : ?>
                <?php while (have_posts()) : the_post(); ?>
                <div class="item">
                	<div class="top">
                    	<div class="icon">
                        </div>
                        <div class="title">
                        	<h1><?php the_title(); ?></h1>
                            <p class="meta"><?php the_time('j.m.Y') ?> | Category: <?php the_category(', '); ?></p>
                        </div>
                        <div class="clear">&nbsp;</div>
                     </div>
                     <div class="text">
                        	 <?php the_content(); ?>
                     </div>
                     <div class="bottom">
                     	<div class="postComments">
                        	<a href="<?php comments_link(); ?>"><?php comments_number('comment','1 comment','% comments'); ?></a>
                        </div>
                        <div class="clear">&nbsp;</div>
                     </div>
                     <div class="line">&nbsp;</div>
                     <?php wp_list_comments();?>
                     <?php comment_text(); ?>
                </div>
                <!--end item -->
                <?php endwhile; ?>
    
                <?php endif; ?>

    as you can see I’m trying to use <?php wp_list_comments();?> & <?php comment_text(); ?>but none of them work I don’t see any comments and I should see two…
    please help

The topic ‘problem with adding comments to single.php’ is closed to new replies.