[WordPress] 外掛分享: VA Excerpt From Content

首頁外掛目錄 › VA Excerpt From Content
10+
安裝啟用
尚無評分
3568 天前
最後更新
問題解決
WordPress 4.5.2+ v1.0.1 上架:2016-06-08

內容簡介

您不必輸入摘錄。插件會從內容自動創建摘錄。

字符數在 "excerpt_length" 過濾器中設置。
"繼續閱讀" 設置在 "excerpt_more" 過濾器中。
如果有 "<!–more–>",則不創建摘錄。

如果 "va_excerpt_from_content_strip_all_tags" 過濾器為 true,則去除 HTML 內容。

// remove the html.
add_filter('va_excerpt_from_content_strip_all_tags', '__return_true');

需求

WordPress 4.5 或更高
PHP 5.6+

貢獻!

您可以從GitHub中fork這個外掛

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「VA Excerpt From Content」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

You don’t need to enter an excerpt. Plug-ins auto-create excerpt from the content.

Is the number of characters set in the “excerpt_length” filter.
“Continue reading” setting in the “excerpt_more” filter.
If there is “” does not create an excerpt.

Remove the HTML to “va_excerpt_from_content_strip_all_tags” filter is true.
// remove the html.
add_filter( ‘va_excerpt_from_content_strip_all_tags’, ‘__return_true’ );

Requires

WordPress 4.5 or higher
PHP 5.6+

Contribute!
You can fork the plugin from GitHub

延伸相關外掛

文章
Filter
Apply Filters
Mastodon