• Hi Everyone – someone PLEASE help me. I’m not sure what I am doing wrong here.

    Everything works, comments just don’t show at all. I’ve tried putting the tag inside the loop / outside of the loop.. I don’t get it.

    <?php get_header(); ?>
        		<div class="main-content">
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        			<div class="box" style="margin: 0 0 20px 0;">
        				<div class="top-left"><div class="top-right"><div class="bottom-left"><div class="bottom-right">
        					<div>
    							<div class="image-frame">
    	    						<div class="date">
    	    							<strong><?php the_time('j'); ?> </strong>
    	    							<span class="month-year"><span class="month"><?php the_time('M'); ?> </span><?php the_time('Y'); ?></span>
    	    						</div>
    
    	    					</div>
    	    					<div class="text-frame">
    	    						<h3><?php the_title(); ?></h3>
    	    					</div>
    
    	    					<div class="content">
    	    						<?php the_content(); ?>
    	    					</div>
    
    	    					<div class="relax">&nbsp;</div>
    	    					<ul class="links wide">
    	    						<li class="author"><strong>By:</strong> <?php the_author_link(); ?> at <?php the_time('g:i a'); ?> (GMT)</li>
    	    						<li class="tags"><?php the_tags('<strong>Tags:</strong> '); ?></li>
    	    						<li class="category"><strong>Categories:</strong> <?php the_category(', '); ?></li>
    	    					</ul>
    	    					<ul class="links">
    	    						<li class="comments"><strong><?php comments_number('0','1','%'); ?></strong></li>
    	    						<li class="permalink"><a href="<?php the_permalink(); ?>">Permalink</a></li>
    	    						<li class="share"></li>
    	    					</ul>
        					</div>
        					<div class="relax">&nbsp;</div>
        				</div></div></div></div>
        			</div>
    	<?php endwhile; else: ?>
    
    		<p>Sorry, no posts matched your criteria.</p>
    
    <?php endif; ?>
    
     <?php comments_template(); ?>
    
        		</div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
  • Try:

    <?php comments_template(); ?>
    <?php endwhile; else: ?>
    <p>Sorry, no posts matched your criteria.</p>
    <?php endif; ?>
Viewing 1 replies (of 1 total)

The topic ‘Comments will not load on single’ is closed to new replies.