WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Better Excerpt

Gives you full control over the WordPress excerpt: change the length, the ellipsis [...] and surrounding markup.

Does it remove HTML tags?

Yes, it does.

Can't you make it leave HTML tags in?

If you want to leave HTML in, then the "more" tag is your friend. the_excerpt is meant to remove HTML.

How can I have excerpts of different lengths?

You can manually call the function like this: <?php echo better_excerpt($length, $ellipsis, $before_text, $after_text, $link_to_post, $link_text); ?> for example <?php echo better_excerpt(500, '...', '

', '

' '1', 'read more'); ?> obviously replacing the variables with your own values. The value of link_to_post should be 'yes' or 'no'. All variables need to have values, so if you don't want any - e.g. - code before or after the extract, you need empty inverted commas ''

Does it leave half-words at the end of my excerpt?

No, it doesn't: half-words are trimmed back to the end of the previous word.

I set length to 55 but it's only giving me about 10 words

Length is set in characters - that is, letters, numbers, spaces and bits of punctuation. We do it like this because some people use lots of long words, and some people don't, so a ten word excerpt for some would be the same length as a twenty word excerpt for others. As a general rule of thumb, assume 5 letters in the average English word.

I installed it but now I get a fatal error for strrpos...

This plugin requires PHP5. Most likely, you're still running PHP4. It's time to upgrade.

Requires: 2.8 or higher
Compatible up to: 2.8.4
Last Updated: 2009-10-16
Downloads: 8,731

Ratings

4 stars
4.4 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,2,2
100,1,1
75,4,3
100,1,1
100,1,1
0,1,0