Loop don't work within single.php page
I have this code below within the loop
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="new-posts-form">
<div class="new-posts-img"><a href="<?php the_permalink(); ?>"></a><a
href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php
the_post_thumbnail(array(100,80)); ?></a></div>
<div class="new-posts-title"><a href="<?php the_permalink(); ?>"><?php
the_title(); ?></a></div>
<div class="new-post-description"><?php content('11'); ?></div>
<div class="new-post-add-date-time"><img src="<?php
bloginfo('template_url'); ?>/images/tb_clock.png" /><?php the_time('F j,
Y'); ?> at <?php the_time('g:i a'); ?> : <?php the_category(', ') ?></div>
</div> <!--end new posts form-->
<?php endwhile; ?>
<?php endif; ?>
I have 5 posts in my blog the loop is work perfectly in home page and show
all five posts without any problem
but when I use same code within same loop in single.php page only show one
post and don't show other four posts
No comments:
Post a Comment