Title: Multiple Excerpt Lengths
Author: Raaj Trambadia
Published: <strong>2016 年 1 月 28 日</strong>
Last modified: 2019 年 9 月 8 日

---

搜索插件

![](https://ps.w.org/multiple-excerpt-lengths/assets/banner-772x250.png?rev=1337696)

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

![](https://ps.w.org/multiple-excerpt-lengths/assets/icon-256x256.png?rev=1337685)

# Multiple Excerpt Lengths

 作者：[Raaj Trambadia](https://profiles.wordpress.org/raajtram/)

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

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

 [支持](https://wordpress.org/support/plugin/multiple-excerpt-lengths/)

## 描述

Do you have excerpts on multiple pages? Do you want to have them at different lengths?

With the Multiple Excerpt Lengths plugin, you can now control the length (in words)
of excerpts present at various different templates throughout your WordPress site.

By default, **WordPress sets the length of excerpts at 55 words**. It is fairly 
simple to change this length – it only requires you to add a short piece of code
to your functions.php file. However, once you add that code, it changes the length
of **ALL** the excerpts present on your site, and you may not want that.

For example, you might want to shorten the length of the excerpts on your Front 
Page where you have 3 recent blog posts displayed horizontally in columns but you
might not want to change the length of the excerpts on your Blog Page (which may
be displaying 10 of your recent posts).

With this plugin, you’ll be able to change the length of excerpts present at various
different locations throughout your site. By default, the plugin will keep the excerpts
at 55 words. If you wish to change the length for a given page/template, you can
do so by specifying a number for the appropriate page/template.

## 安装

Installation is similar to any other plugin that you would install.

 1. Upload the plugin files to the `/wp-content/plugins/multiple-excerpt-lengths` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Use the Dashboard->Settings->Excerpt Lengths screen to configure the plugin

## 常见问题

  What is the default length of excerpts set by the plugin if I don’t specify any
length in the plugin settings?

By default, just like WordPress, the plugin sets the excerpts at 55 words.

  How and in what cases will I have excerpts on the Front Page?

This is determined by the theme in use. Some themes allow you to display a Blog 
Posts sections on the front page, and some don’t. You should consult your theme 
developer for any queries regarding this.

  What is the maximum length allowed?

The plugin allows a maximum length of 999 words – but it wouldn’t really be an “
excerpt” with as many words.

## 评价

![](https://secure.gravatar.com/avatar/68c13cacc427a62d19ac4b080f7d046547ff6d94ade398574d3dd48008f8b218?
s=60&d=retro&r=g)

### 󠀁[Dead simple, solves a common WordPress problem](https://wordpress.org/support/topic/dead-simple-solves-a-common-wordpress-problem/)󠁿

 [kolakube](https://profiles.wordpress.org/alexmangini/) 2016 年 9 月 3 日

I’ve spent a lot of time fiddling with code to change different excerpt lengths 
for not only myself but my customers and this plugin adds a dead-simple interface
to do it. Killer work!

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/multiple-excerpt-lengths/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Raaj Trambadia ](https://profiles.wordpress.org/raajtram/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.1

*Added support for Search pages

#### 1.0

*Plugin Released

## 额外信息

 *  版本 **1.2**
 *  最后更新：**7 年前**
 *  活跃安装数量 **70+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **5.2.24**
 *  语言
 * [English (US)](https://wordpress.org/plugins/multiple-excerpt-lengths/)
 * 标签
 * [excerpt](https://cn.wordpress.org/plugins/tags/excerpt/)[excerpts](https://cn.wordpress.org/plugins/tags/excerpts/)
   [wp_query](https://cn.wordpress.org/plugins/tags/wp_query/)
 *  [高级视图](https://cn.wordpress.org/plugins/multiple-excerpt-lengths/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/multiple-excerpt-lengths/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/multiple-excerpt-lengths/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/multiple-excerpt-lengths/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/multiple-excerpt-lengths/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/multiple-excerpt-lengths/reviews/?filter=1)

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

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

## 贡献者

 *   [ Raaj Trambadia ](https://profiles.wordpress.org/raajtram/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](http://raajtram.com/)