2012-02-04 57 views

回答

2

//從你的循環只是刪除the_content()或the_excerpt()調用

<?php if (have_posts()) : ?> 
       <?php while (have_posts()) : the_post(); ?>  
       <!-- do stuff ... --> 
       if (has_post_thumbnail()) { // check if the post has a Post Thumbnail assigned to it. 
        the_post_thumbnail(); 
       } 
       post_title();// to display the post title 
       <?php endwhile; ?> 
<?php endif; ?> 
+0

不認爲是什麼他問。 – 2012-02-05 01:21:51

+0

沒有他只是想顯示帖子縮略圖和標題...如果我沒有錯你所提供的sol會顯示文本摘錄形式的帖子(我認爲這將是40個字符的默認) – tinyhook 2012-02-05 18:42:00

+0

我可能是錯誤的,但根據那鏈接不只是一個標題,但一些額外的小信息連同它 – 2012-02-05 19:29:16

相關問題