Title: Excerpt Length
Author: vertino
Published: <strong>2009 年 4 月 30 日</strong>
Last modified: 2009 年 6 月 30 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/excerpt-length.svg)

# Excerpt Length

 作者：[vertino](https://profiles.wordpress.org/vertino/)

[下载](https://downloads.wordpress.org/plugin/excerpt-length.zip)

 * [详情](https://cn.wordpress.org/plugins/excerpt-length/#description)
 * [评价](https://cn.wordpress.org/plugins/excerpt-length/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/excerpt-length/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/excerpt-length/#developers)

 [支持](https://wordpress.org/support/plugin/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()](https://codex.wordpress.org/Template_Tags/the_excerpt).

## 安装

 1. Unzip the excerpt-length.zip file.
 2. Upload the `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.

  Excerpt Suffix

In version 1.1 of Excerpt Length I have added a new field called **Excerpt Suffix**.
This is used to replace the default `[...]` text that is appended to the excerpt
length. You can now used whatever text you like as the suffix.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Excerpt Length」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ vertino ](https://profiles.wordpress.org/vertino/)

[帮助将「Excerpt Length」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/excerpt-length)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/excerpt-length/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/excerpt-length/)，或通过[RSS](https://plugins.trac.wordpress.org/log/excerpt-length/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/excerpt-length/)。

## 额外信息

 *  版本 **1.1**
 *  最后更新：**17 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 2.7 或更高版本 **
 *  已测试的最高版本为 **2.8**
 *  语言
 * [English (US)](https://wordpress.org/plugins/excerpt-length/)
 * 标签
 * [admin](https://cn.wordpress.org/plugins/tags/admin/)[excerpt](https://cn.wordpress.org/plugins/tags/excerpt/)
   [formatting](https://cn.wordpress.org/plugins/tags/formatting/)[length](https://cn.wordpress.org/plugins/tags/length/)
   [word limit](https://cn.wordpress.org/plugins/tags/word-limit/)
 *  [高级视图](https://cn.wordpress.org/plugins/excerpt-length/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/excerpt-length/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/excerpt-length/reviews/)

## 贡献者

 *   [ vertino ](https://profiles.wordpress.org/vertino/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/excerpt-length/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.dreamhost.com/donate.cgi?id=7992)