<?php the_content('Continue Reading ?'); ?>取出文章內容,但是首頁側邊欄和footer就不顯示,把它注釋掉以后就可以顯示,不知道是不是這個函數引起的問題。求高手解答
2 回答

梵蒂岡之花
TA貢獻1900條經驗 獲得超5個贊
<?php the_content('Continue Reading ?'); ?>這個是在首頁顯示 閱讀全文的按鈕的、和你的側邊欄不顯示是沒有關系、如果你注釋掉就正常了、就需要看下代碼到底是哪里的問題!

臨摹微笑
TA貢獻1982條經驗 獲得超2個贊
絕對不是的,<?php the_content('Continue Reading ?'); ?>是獲取文章的內容,必須放在
<? if (have_posts()) : while (have_posts()) : the_post(); update_post_caches($posts); ?>
<?php the_content('Continue Reading ?'); ?>
<?php endwhile; else : ?>
<?php endif; ?>
主要還是不知道你的具體情況怎樣
- 2 回答
- 0 關注
- 170 瀏覽
添加回答
舉報
0/150
提交
取消