Support » Fixing WordPress » Latests posts is breaking comments section

  • Hi all,

    I’m quite new to WordPress but I have this code:

    <div class="latest">
    		<h3>Latest News</h3>
    
    		<?php query_posts('showposts=3'); ?>
    
    		<?php if (have_posts()) : ?>
    			<?php while (have_posts()) : the_post(); ?>
    
    				<div class="item">
    					<h4 class="title">
    						<a href="<?php the_permalink(); ?>" title="View <?php the_title() ?>">
    							<?php the_title() ?>
    						</a>
    					</h4>
    					<span class="date"><?php the_time('F jS'); ?></span>
    	            </div>
    
    			<?php endwhile; ?>
    		<?php endif; ?>
    
    		<p><a href="news/">More news</a></p>
    	</div>

    Which works fine, however with this code in my page, my comments no longer show. Is this something to do with the method of grabbing the posts?

    The template I have this code on is just a standard page not a blog, so I wouldn’t have thought retrieving posts would be a problem.

  • The topic ‘Latests posts is breaking comments section’ is closed to new replies.