2013-08-29 107 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

回答

相關問題