2013-01-12 76 views
0

我的wordpress 3.5博客存在惱人的問題。Wordpress the_content('more')無法顯示<--more-->

the_content()函數未能在第一頁/索引頁上顯示簡短版本的帖子,並且它顯示完整帖子的內容。

我從loop.php文件當前the_content()代碼行是:

<?php the_content('Read more...'); ?> 

我也嘗試搜索WordPress的論壇計算器和食品法典委員會和我想這:

<?php 
global $more; // Declare global $more (before the loop). 
$more = 0;  // Set (inside the loop) to display content above the more tag. 
the_content("More..."); 
?> 

,但它不工作。

任何ideea這個問題可能是什麼?

回答

2

您是否在要顯示更多鏈接的頁面內容中添加了<!--more-->標記?取自食品法典the_excerpt()

有時只使用the_content()函數更有意義。根據是否使用<!--more-->標籤,the_content()將決定顯示哪些內容。 <!--more-->標籤將帖子/頁面分成兩部分:標籤之前只有內容應顯示在列表中。請注意,<!--more-->(當然)在顯示單個帖子/頁面時會被忽略。

+0

好的,這是行不通的! –