2013/12/17

Wordpress | 文章摘要 the_excerpt

WordPress 顯示摘要的方法:

  1. More 標籤(繼續閱讀):在 HTML 編輯狀態下,插入 <!-more-> 標籤,或在編輯框上點 More 標籤按鈕,在此標籤前的內容會顯示在首頁摘要。
  2. 修改函數 the_excerpt ,搭配發文介面內的「文章摘要」,或自動輸出文字。
  • index.php、archive.php、search.php

< ?php the_content(); ?> 替換為 < ?php the_excerpt(); ?>

0 comments:

張貼留言