- WordPress Complete(Sixth Edition)
- Karol Król
- 298字
- 2021-07-02 18:30:17
Excerpt
WordPress offers theme designers the option to show a post's Excerpt (instead of its full content or lead+body) on pages within the theme:

This is how the excerpt works:
- If you enter some text into the Excerpt box on the Edit Post page, that text will be used as the post's excerpt on the pages that call for it.
- If you do not enter any text into the Excerpt box, WordPress will use the first 55 words of the post's content (which is stripped of HTML tags) followed by [...] (which is not a link).
- If you do not enter any text into the Excerpt box, and the theme you are using does something special, the number of words and the final text could be different.
You are never required to enter excerpt text. However, it is advisable that you do take advantage of this possibility. Excerpts can introduce big readability improvements to your site, and make your content easier to grasp for the reader, provided that your current theme uses excerpts in one way or the other. In some cases, excerpts also give your site additional SEO benefits - provided that your theme displays them in places where Google and the other search engines can see them.
The more tag ( <!--more-->), which has been described in one of the previous sections in this chapter, should not be confused with the excerpt. It is different from the excerpt because of you, not the theme designer, controls its use. Additionally, the more tag is supported by every theme and has a slightly different task than the excerpt. It's meant to present the lead of the post, the part that's going to convince the reader to visit the complete post, while the excerpt is a summary of the post's contents.
推薦閱讀
- Getting Started with Gulp(Second Edition)
- Java高并發(fā)核心編程(卷2):多線程、鎖、JMM、JUC、高并發(fā)設(shè)計(jì)模式
- arc42 by Example
- 編程卓越之道(卷3):軟件工程化
- Django開(kāi)發(fā)從入門(mén)到實(shí)踐
- Java Web程序設(shè)計(jì)
- 征服RIA
- 信息技術(shù)應(yīng)用基礎(chǔ)
- Learning Hunk
- Oracle Exadata專家手冊(cè)
- 劍指大數(shù)據(jù):企業(yè)級(jí)數(shù)據(jù)倉(cāng)庫(kù)項(xiàng)目實(shí)戰(zhàn)(在線教育版)
- Learning Apache Karaf
- 區(qū)塊鏈技術(shù)進(jìn)階與實(shí)戰(zhàn)(第2版)
- 貫通Tomcat開(kāi)發(fā)
- 大規(guī)模語(yǔ)言模型開(kāi)發(fā)基礎(chǔ)與實(shí)踐