2013-08-29 121 views
0

嗨我有一个WordPress博客我把这个代码在single.php页面内侧边栏 代码是相同的代码在该页面> this代码是正确的工作在hompage侧边栏并返回到所有帖子 但在single.php侧边栏只返回到一个职位。循环内我的single.php WordPress博客只返回一个职位

<?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> 


<?php endwhile; ?> 
<?php endif; ?> 
+1

的'single'在'single.php'应该给你一个线索,为什么... :) – sprain

回答

相关问题