Second Loop Showing Only One Post on Single Post Page

The single.php page I am working on was able to display two loops successfully, the first being the actual page’s post, and the second loop displaying the last 5 posts. However, since I have styled the page things have gone wrong. Now the second loop only ever displays the very last post. When I inspect the backend of the page, it shows that the post page is running every other post from the last 5 posts. For example, if the last 5 posts are 228, 227, 226, 225, and 224, the page is running just 228, 226, and 224. (What happened to 227 and 225?) However, even though 228, 226, and 224 are running, only 228 is showing.

I have checked the Reading section of the site and have it clearly marked to display 5 posts, yet it still won’t display anything other than that last post.

Any thoughts?

<div id=”blogcontainer”>
<?php query_posts(‘post_type=post’) ?>
<?php if (have_posts()) : while(have_posts()) : the_post();?>
<div class=”postcontainer” id=”post-<?php the_ID(); ?>”>

” title=””>

” title=””>
MORE >

<?php endwhile; ?>

<?php else: ?>

<?php endif; ?>

Here is the page single post

Read more here:: Second Loop Showing Only One Post on Single Post Page

Leave a Reply

Your email address will not be published. Required fields are marked *