-1
我有我的WordPress後期循環的問題,如果我添加或更新一個帖子,它決定殺一個奇怪,它會消失?這個問題之前有過嗎?WordPress的帖子頁面循環代理奇怪
<?php query_posts('posts_per_page=4&cat=3'); while(have_posts()) : the_post(); ?>
<div class="eventPostOuter">
<div class="eventPost">
<span class="eventsImage">
<?php the_post_thumbnail(array(200,200)); ?></span>
<h3><?php the_title(); ?></h3>
<span style="padding-bottom: 40px;" class="exerpt"><p><?php echo substr(get_the_excerpt(), 0,200); ?> [...]</p></span>
<!--<span class="excerpt" style="padding-top: 20px;"><p><a class="excerptLink" href="<?php the_permalink(); ?>">Read full article</a></p></span>-->
</div>
</div>
<?php endwhile; wp_reset_query(); ?>
這是我的代碼,也許我在那裏犯了一個錯誤?我無法看到問題是什麼,它只是剛剛開始這樣做...
您確實已將它設置爲一次只顯示4個帖子。 – Howli 2014-10-01 10:23:27
不清楚你想說什麼。做得清楚一點。所以我可以幫你。 – 2014-10-01 10:24:43
所以現在是當我添加或更新和現有的職位後,其中一個將消失,它只顯示3.另外,如果我改變特色圖像的圖像沒有獨立顯示... – stacking 2014-10-01 10:25:43