這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Change Excerpt Length

描述

Adds an Excerpt Length field setting to the Reading Settings section. This value is used to specify the number of words that you would like to appear in the the_excerpt().

螢幕截圖

  • screenshot-1.png

安裝

  1. Unzip the change-excerpt-length.zip file.
  2. Upload the change-excerpt-length folder to the /wp-content/plugins/ directory.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.
  4. Go to the Reading Settings section and specify the length of the excerpt.

常見問題

Installation Instructions
  1. Unzip the change-excerpt-length.zip file.
  2. Upload the change-excerpt-length folder to the /wp-content/plugins/ directory.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.
  4. Go to the Reading Settings section and specify the length of the excerpt.
Why did you create this plugin?

Until now, there were 3 ways to change the word length of the excerpt, by either modifying a core file (formatting.php), or replacing the wp_trim_excerpt filter in your theme’s functions.php code, or by using a different plugin (requiring you to edit your theme/templates).

This plugin simply adds a new field setting to the Reading section called Excerpt Length. The value you set limits the number of words displayed when the_excerpt() is called by your theme.

Does it work for WordPress version x.x.x?

This plugin only works in WordPress 2.7 and above. This is due to new API calls that were made available in version 2.7. It will not work in earlier version of WordPress (2.6 and below).

Does this plugin change the formatting of the_excerpt?

No, this plugin has one sole purpose, that is to enable you to change the word length of the excerpt.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Change Excerpt Length” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Change Excerpt Length 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄