Return first paragraph as excerpt | Excerpt-first-paragraph

Here is a neat little plugin that I use on my websites: excerpt-first-paragraph.

It does what it says, it returns the first paragraph as excerpt in your WordPress theme.


1. Download

2. Upload to plugins and activate

3. Replace the_excerpt in your theme with:

if($pos = strpos($post->post_content, '<!--more-->')) :
else :
echo get_the_content_first_paragraph();

Note: All images get cut out of the excerpt first paragraph.

And you are all set. No more blog entries cut off mid sentence with … :) Enjoy having your first paragraph as an excerpt!