The default excerpt created by WordPress removes all HTML. If your theme uses the_excerpt() to view excerpts, they might look weird because of this (e.g. smilies are removed, lists are flattened, etc.) This plugin fixes that and also gives you more control over excerpts.
I haven't had the chance to test the plugin on many versions of WordPress. It has been tested on 2.2 through 2.7, but it might work on other versions, too. You can safely try it yourself, because the plugin is unlikely to break anything (it's only an output filter). Please let me know if you succesfully tested it on another version of WordPress.
The plugin comes bundled with a few languages. The correct language will automatically be selected to match your WordPress locale.
More information on translation will be added in the future.
First of all, it should be noted that word-based excerpt length only works if your language uses normal whitespace as a word separator. If you use another language, you have to uncheck the Use words? option.
PHP's support for multibyte characters is not perfect. The plugin provides support for these characters to the best of its ability, but there are no guarantees that everything will work. Your best bet is to use UTF-8 encoding (which WordPress uses by default). If you still encounter problems, check with your host if the mbstring PHP extension is enabled on your server.
The plugin automatically hooks on the_excerpt() function 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 (theme developers will be familiar with this notation).
The following parameters can be set:
length, an integer that determines the length of the excerptuse_words, if set to 1, the excerpt length will be in words; if set to 0, characters will be used for the countno_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 usedellipsis, 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 queryexclude_tags, a comma-separated list of HTML tags that must be removed from the excerptallow_tags, a comma-separated list of HTML tags that are allowed in the excerptA custom, advanced excerpt call could look like this:
the_advanced_excerpt('length=320&use_words=0&no_custom=1&ellipsis=%26hellip;&exclude_tags=img,p,strong');
No, this plugin fetches the post from The Loop and there is currently no way to pass a post ID or anything custom of that kind to it. You can, however, consider to start The Loop manually.




