Title: Advanced Excerpt
Author: WPKube
Published: <strong>སྤྱི་ཟླ་བརྒྱད་པ། 28, 2007</strong>
Last modified: སྤྱི་ཟླ་དང་པ། 19, 2024

---

Search plugins

![](https://ps.w.org/advanced-excerpt/assets/banner-772x250.jpg?rev=921436)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# Advanced Excerpt

 By [WPKube](https://profiles.wordpress.org/wpkube/)

[Download](https://downloads.wordpress.org/plugin/advanced-excerpt.4.4.1.zip)

 * [Details](https://dzo.wordpress.org/plugins/advanced-excerpt/#description)
 * [Reviews](https://dzo.wordpress.org/plugins/advanced-excerpt/#reviews)
 *  [Installation](https://dzo.wordpress.org/plugins/advanced-excerpt/#installation)
 * [Development](https://dzo.wordpress.org/plugins/advanced-excerpt/#developers)

 [Support](https://wordpress.org/support/plugin/advanced-excerpt/)

## Description

This plugin adds several improvements to WordPress’ default way of creating excerpts.

 1. Keeps HTML markup in the excerpt (and you get to choose which tags are included)
 2. Trims the excerpt to a given length using either character count or word count
 3. Only the ‘real’ text is counted (HTML is ignored but kept)
 4. Customizes the excerpt length and the ellipsis character that are used
 5. Completes the last word or sentence in an excerpt (no weird cuts)
 6. Adds a _read-more_ link to the text
 7. Ignores custom excerpts and use the generated one instead
 8. Theme developers can use `the_advanced_excerpt()` for even more control (see the
    FAQ)

Most of the above features are optional and/or can be customized by the user or 
theme developer.

Banner image credit – [chillihead](https://www.flickr.com/photos/chillihead/)

Original plugin author – [basvd](https://profiles.wordpress.org/basvd)

**Useful Resources**

 * [What is WordPress](https://fancythemes.com/what-is-wordpress/)
 * [Fee Themes](https://fancythemes.com/wordpress-themes) and [plugins](https://fancythemes.com/wordpress-plugins/)

## Screenshots

 * [[
 * The options page
 * [[
 * An example of an excerpt generated by the plugin

## Installation

 1. Use WordPress’ built-in installer
 2. Access the “Excerpt” menu option under Settings

## FAQ

### What’s an excerpt?

A short version of a post that is usually displayed wherever the whole post would
be too much (eg. search results, news feeds, archives). You can write them yourself,
but if you don’t, WordPress will make a very basic one instead.

### Why do I need this plugin?

The default excerpt created by WordPress removes all HTML. If your theme uses `the_excerpt()`
or `the_content()` to view excerpts, they might look weird because of this (smilies
are removed, lists are flattened, etc.) This plugin fixes that and also gives you
more control over excerpts.

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

During development, the plugin is tested with the most recent version(s) of WordPress.
It might work on older versions, but it’s better to just keep your installation 
up-to-date.

### Is this plugin available in my language?

Advanced Excerpt is internationalization (i18n) friendly.

### Does this plugin support multibyte characters, such as Chinese?

Before 4.1, multibyte characters were supported directly by this plugin. This feature
has been removed because it added irrelevant code for a ‘problem’ that isn’t actually
specific to the plugin.

If you require multibyte character support on your website, you can [override the default text operations](http://www.php.net/manual/en/mbstring.overload.php)
in PHP.

### Can I manually call the filter in my WP theme or plugin?

The plugin automatically hooks on `the_excerpt()` and `the_content()` functions 
and uses the parameters specified in the options panel.

If you want to call the filter with different options, you can use `the_advanced_excerpt()`
template tag provided by this plugin. This tag accepts [query-string-style parameters](https://codex.wordpress.org/Template_Tags/How_to_Pass_Tag_Parameters#Tags_with_query-string-style_parameters)(
theme developers will be familiar with this notation).

The following parameters can be set:

 * `length`, an integer that determines the length of the excerpt
 * `length_type`, enumeration, if set to `words` the excerpt length will be in words;
   if set to `characters` the excerpt length will be in characters
 * `no_custom`, if set to `1`, an excerpt will be generated even if the post has
   a custom excerpt; if set to `0`, the custom excerpt will be used
 * `no_shortcode`, if set to `1`, shortcodes are removed from the excerpt; if set
   to `0`, shortcodes will be parsed
 * `finish`, enumeration, if set to `exact` the excerpt will be the exact lenth 
   as defined by the “Excerpt Length” option. If set to `word` the last word in 
   the excerpt will be completed. If set to `sentence` the last sentence in the 
   excerpt will be completed.
 * `ellipsis`, the string that will substitute the omitted part of the post; if 
   you want to use HTML entities in the string, use `%26` instead of the `&` prefix
   to avoid breaking the query
 * `read_more`, the text used in the read-more link
 * `add_link`, if set to `1`, the read-more link will be appended; if `0`, no link
   will be added
 * `allowed_tags`, a comma-separated list of HTML tags that are allowed in the excerpt.
   Entering `_all` will preserve all tags.
 * `exclude_tags`, a comma-separated list of HTML tags that must be removed from
   the excerpt. Using this setting in combination with `allowed_tags` makes no sense

A custom advanced excerpt call could look like this:

    ```
    the_advanced_excerpt('length=320&length_type=words&no_custom=1&ellipsis=%26hellip;&exclude_tags=img,p,strong');
    ```

### Does this plugin work outside the Loop?

No, this plugin fetches the post from The Loop and there is currently no way to 
pass a post ID or any custom input to it.
 However, you can [start The Loop manually](https://codex.wordpress.org/The_Loop#Multiple_Loops)
and apply the plugin as usual.

## Reviews

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

### 󠀁[No longer working apparently](https://wordpress.org/support/topic/no-longer-working-apparently/)󠁿

 [pipspeak](https://profiles.wordpress.org/pipspeak/) སྤྱི་ཟླ་བཅུ་པ། 22, 2025

It looked promising, feature wise, but is not working on WordPress 6.8.3 running
Twenty Twenty-Five theme — has no effect on the default Excerpt block and no other
custom excerpt block seems to have been created by the plugin.

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

### 󠀁[Is this plugin still maintained](https://wordpress.org/support/topic/is-this-plugin-still-maintained-72/)󠁿

 [ibiza69](https://profiles.wordpress.org/ibiza69/) སྤྱི་ཟླ་དྲུག་པ། 8, 2025

Is this plugin still being maintained by its developers? It hasn’t been updated 
in a year? What version of PHP does it support? I’d also like to ask if there’s 
support, given that we’ve read many questions here and none have been answered. 
For this reason, if not, we should inform WordPress that this plugin is no longer
being maintained or serving its users, so they can remove it from the repository.

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

### 󠀁[Didn’t work on wordpress 6.8.1](https://wordpress.org/support/topic/didnt-work-on-wordpress-6-8-1/)󠁿

 [pundarikaksa](https://profiles.wordpress.org/pundarikaksa/) སྤྱི་ཟླ་ལྔ་པ། 26, 
2025

It’s a real pity… 🙁

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

### 󠀁[almost totally fine](https://wordpress.org/support/topic/almost-totally-fine/)󠁿

 [eoik](https://profiles.wordpress.org/eoik/) སྤྱི་ཟླ་བཞི་པ། 11, 2025

Hi, I’m using it with twenty twenty-one and wp latest version, and it’s working 
almost totally fine.The Read-more link is not showing where there is an excerpt.
And it is sometimes not well aligned (aligned on the left border of the screen),
when i’m using columns (after a div styled with : wp-block-columns alignwide is-
layout-flex )

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

### 󠀁[Love this plugin!](https://wordpress.org/support/topic/love-this-plugin-1267/)󠁿

 [nealumphred](https://profiles.wordpress.org/nealumphred/) སྤྱི་ཟླ་བཅུ་གཅིག་པ། 
30, 2024

Love love love this plugin! It really makes the excerpts for each article on my 
blog’s old-fashioned home page look fantastic. Keep on keepin’ on!

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

### 󠀁[Broken in 6.6.1](https://wordpress.org/support/topic/broken-in-6-6-1/)󠁿

 [ncw0123](https://profiles.wordpress.org/ncw0123/) སྤྱི་ཟླ་བརྒྱད་པ། 1, 2024

Potentially a fantastic addition but unfortunately this does not appear to strip
the tags in WP 6.6.1 so still unable to show links in excerpts (unless I’m missing
something)

 [ Read all 101 reviews ](https://wordpress.org/support/plugin/advanced-excerpt/reviews/)

## Contributors & Developers

“Advanced Excerpt” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ WPKube ](https://profiles.wordpress.org/wpkube/)
 *   [ FancyThemes ](https://profiles.wordpress.org/fancythemes/)

“Advanced Excerpt” has been translated into 12 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/advanced-excerpt/contributors)
for their contributions.

[Translate “Advanced Excerpt” into your language.](https://translate.wordpress.org/projects/wp-plugins/advanced-excerpt)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/advanced-excerpt/),
check out the [SVN repository](https://plugins.svn.wordpress.org/advanced-excerpt/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/advanced-excerpt/)
by [RSS](https://plugins.trac.wordpress.org/log/advanced-excerpt/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 4.4.1 (January 19th, 2024)

 * Fix – PHP 8 issue with “creation of dynamic property” being deprecated

#### 4.4.0 (February 1st, 2023 )

 * New – Option to generate an excerpt from the manually created excerpt (instead
   of showing full manual excerpt)

#### 4.3.9 (April 13th, 2021)

 * New – Option to enable adding the “read more link” for custom excerpts as well

#### 4.3.8 (December 28th, 2020)

 * New – Multilanguage compatibility for the “read more” text. The shortcode [advanced_excerpt_text]
   is used. Example [advanced_excerpt_text lang=”en_US”]English[/advanced_excerpt_text][
   advanced_excerpt_text lang=”de_DE”]German[/advanced_excerpt_text]

#### 4.3.7 ( July 10th, 2020 )

 * New – Option to link the whole excerpt to the single post page
 * Fix – Issue with “sentence finish” when there is a number with decimal points
 * Fix – Updated POT file for translations

#### 4.3.6 ( June 1st, 2020 )

 * Fix – Issue with undefined index PHP notice

#### 4.3.5 ( February 6th, 2020 )

 * Fix – Issue when excerpt ends in a foreign character

#### 4.3.4 ( December 17th, 2019 )

 * Fix – Sentence finish option not working properly if . ? or ! are followed by
   another character such as ” for example

#### 4.3.3 ( October 5th, 2019 )

 * Fix – Conflict with “WPTouch” plugin
 * Fix – Conflict with “bbPress” plugin

#### 4.3.2 ( September 24th, 2019 )

 * Fix – Conflict with “The Events Calendar” plugin

#### 4.3.1 ( June 21st, 2019 )

 * New – Option to disable the functionality for WooCommerce products

#### 4.3.0 ( June 14th, 2019 )

 * Fix – Conflict with Sassy Social Share plugin

#### 4.2.9 ( May 27th, 2019)

 * New – Filter for developers to change the read more text. The filter is advanced_excerpt_read_more_text
 * Tweak – The read more text option now accept shortcodes

#### 4.2.8

 * New – Screen reader text is now optional, can be enabled in the options
 * New – Added option to remove the “read more link” if the full post content is
   shown
 * New – Title can be included in the “read more link” by adding {title} to the 
   option

#### 4.2.7

 * New – Option to open “read more” in a new tab
 * New – Added screen reader text for “read more” link

#### 4.2.6

 * New “Finish” option that counts exact characters including blank spaces.

#### 4.2.5

 * Fixed the “remove shortcodes from excerpt” functionality

#### 4.2.4

 * Compatibility tested for latest version of WordPress ( 4.9.6 )
 * Minor tweaks

#### 4.2.3

 * Fix: The “Remove all tags except the following” wasn’t excluding tags as expected
 * Fix: Call `remove_all_filter()` on the `the_excerpt` hook to improve excerpt 
   rendering
 * Fix: Only honor the “Only filter `the_content()` when there’s no break (<!–more–
   >) tag in the post content” setting when hooking into `the_content` filter
 * Improvement: Improve backwards compatibility by reverting back to using `get_the_content()`
   for the base excerpt text
 * Improvement: Added the `advanced_excerpt_skip_excerpt_filtering` filter allowing
   users to skip excerpt filtering on a per excerpt basis

#### 4.2.2

 * Fix: The `the_advanced_excerpt()` function was not working on singular page types(
   pages / posts)

#### 4.2.1

 * Fix: Undefined index errors when using the `the_advanced_excerpt()` function
 * Fix: Not excluding tags when using the `exclude_tags` argument in the `the_advanced_excerpt()`
   function

#### 4.2

 * Feature: Toggle excerpt filtering when there’s no break (<!–more–>) tag in the
   post content
 * Feature: Toggle excerpt filtering for the `the_excerpt()` and `the_content()`
   functions
 * Feature: Toggle excerpt filtering on certain page types
 * Improvement: Added HTML5 tags to the allowed tags list
 * Improvement: Options are now automatically removed from `wp_options` when the
   plugin is deleted from the dashboard
 * Improvement: Added several WordPress filters, allowing developers to extend/modify
   the default functionality of the plugin
 * Improvement: Additional strings were made i18n friendly
 * Improvement: All options are now stored in one row in wp_options rather than 
   one row per option
 * Improvement: Several UI elements have be reworded and styled differently to improve
   user experience
 * Fix: Now works with themes using `the_content()` on archive pages (i.e. WordPress
   default themes and others)
 * Fix: Notices/warning were appearing when the options were saved while having 
   a checkbox option unchecked
 * Fix: The “Read More” link was being incorrectly appended into certain HTML tags,
   e.g. table tags and list tags

#### 4.1

 * Fix: Template function with custom options works again
 * Fix: Data before header bug (retro-fixed in 4.0)
 * Feature: Template function also works with array-style parameters
 * Removed multibyte support
 * Removed PHP 4 support (WP 3.2+ users should be fine, others should update)
 * Better code testing before release!

#### 4.0

 * Feature: Brand new parsing algorithm which should resolve some running time issues
 * Feature: Options to finish a word or sentence before cutting the excerpt
 * Fix: A few small bugs

#### 3.1

 * Fix: A few bugs with custom and character-based excerpts

#### 3.0

 * First major release since 0.2.2 (also removed the `0.` prefix from the version
   number)
 * Feature: Shortcodes can be removed from the excerpt
 * Feature: Virtually any HTML tag may now be stripped
 * Feature: A read-more link with custom text can be added
 * Fix: Word-based excerpt speed improved
 * Fix: Template tag function improved
 * Fix: Better ellipsis placement

## Meta

 *  Version **4.4.1**
 *  Last updated **2 years ago**
 *  Active installations **80ཨང་-སྒྲིག༌བཀོད-སྟོང༌-ཚག000+**
 *  WordPress version ** 3.2 or higher **
 *  Tested up to **6.4.8**
 *  Languages
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/advanced-excerpt/), [Dutch](https://nl.wordpress.org/plugins/advanced-excerpt/),
   [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/advanced-excerpt/), [English (Australia)](https://en-au.wordpress.org/plugins/advanced-excerpt/),
   [English (New Zealand)](https://en-nz.wordpress.org/plugins/advanced-excerpt/),
   [English (US)](https://wordpress.org/plugins/advanced-excerpt/), [Russian](https://ru.wordpress.org/plugins/advanced-excerpt/),
   [Spanish (Chile)](https://cl.wordpress.org/plugins/advanced-excerpt/), [Spanish (Colombia)](https://es-co.wordpress.org/plugins/advanced-excerpt/),
   [Spanish (Ecuador)](https://es-ec.wordpress.org/plugins/advanced-excerpt/), [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/advanced-excerpt/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/advanced-excerpt/), and [Spanish (Venezuela)](https://ve.wordpress.org/plugins/advanced-excerpt/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/advanced-excerpt)
 * Tags
 * [content](https://dzo.wordpress.org/plugins/tags/content/)[excerpt](https://dzo.wordpress.org/plugins/tags/excerpt/)
   [formatting](https://dzo.wordpress.org/plugins/tags/formatting/)[post](https://dzo.wordpress.org/plugins/tags/post/)
   [post excerpt](https://dzo.wordpress.org/plugins/tags/post-excerpt/)
 *  [Advanced View](https://dzo.wordpress.org/plugins/advanced-excerpt/advanced/)

## Ratings

 4.3 out of 5 stars.

 *  [  74 5-star reviews     ](https://wordpress.org/support/plugin/advanced-excerpt/reviews/?filter=5)
 *  [  10 4-star reviews     ](https://wordpress.org/support/plugin/advanced-excerpt/reviews/?filter=4)
 *  [  4 3-star reviews     ](https://wordpress.org/support/plugin/advanced-excerpt/reviews/?filter=3)
 *  [  4 2-star reviews     ](https://wordpress.org/support/plugin/advanced-excerpt/reviews/?filter=2)
 *  [  9 1-star reviews     ](https://wordpress.org/support/plugin/advanced-excerpt/reviews/?filter=1)

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

[See all reviews](https://wordpress.org/support/plugin/advanced-excerpt/reviews/)

## Contributors

 *   [ WPKube ](https://profiles.wordpress.org/wpkube/)
 *   [ FancyThemes ](https://profiles.wordpress.org/fancythemes/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/advanced-excerpt/)