Advanced Excerpt plugin for WordPress
I promised to release some WordPress plugins I’ve been working on. Well, here is the first one!
It’s called “Advanced Excerpt” and basically it just improves the way excerpts are created. By default, if a post has no explicit excerpt, WordPress creates one by grabbing the post content, stripping all the tags, shortening it to a (hard-coded) length and adding an ellipsis (which is, by the way, also hard-coded). The result: a dull excerpt.
This plugin changes that. The most notable feature is that it keeps your HTML. Furthermore, it allows you to choose the length of the excerpt (using either words or characters) and which character(s) is/are used as an ellipsis. You can even choose which HTML tags are stripped and which are not! It is very useful if your WordPress theme uses excerpts at prominent places (like mine).
There is another plugin that attempts to improve excerpt creation, but I tried it and it just doesn’t work properly (in fact, it inspired me to write a better one). One major problem is that it breaks your HTML. My plugin solves this by counting only the words or characters that are not part of an HTML tag and by properly closing tags that are left open.
If you want to see it in action, just look at my front page, a category or try a search. Of course, you can also download it yourself. ![]()
Alan on August 25th, at 2:53 am •
Bas on August 25th, at 1:18 pm •
Alan on August 29th, at 6:09 am •
Keith Messinger on September 7th, at 4:02 am •
Bas on September 7th, at 9:30 am •
Keith Messinger on September 7th, at 3:56 pm •
James Bisset on September 22nd, at 4:24 am •
Bas on September 26th, at 5:14 pm •
Brad on October 17th, at 5:32 am •
James Bisset on November 9th, at 1:46 am •
James Bisset on November 9th, at 2:03 am •
James Bisset on November 18th, at 5:32 am •
Marc Fiszman on December 4th, at 11:32 pm •
Bas on December 4th, at 11:38 pm •
Tench on December 5th, at 3:35 pm •
jack on December 11th, at 10:13 pm •
Bas on December 11th, at 10:17 pm •
Ted Bilmer on December 31st, at 11:14 am •
Bas on December 31st, at 5:57 pm •
ovidius on January 1st, at 5:35 am •
Jim Gore on January 9th, at 5:10 pm •
LastBlogger on February 2nd, at 2:25 pm •
Istvan on February 20th, at 6:57 pm •
Bas on February 20th, at 7:58 pm •
Chad on February 22nd, at 9:04 pm •
eligio on March 2nd, at 5:00 am •
Misser on March 11th, at 1:49 am •
Gerome Freeman on March 26th, at 10:15 pm •
Michael Benson on April 4th, at 2:08 am •
Bas on April 4th, at 7:21 pm •
Olivier César on April 10th, at 4:11 pm •
Bas on April 10th, at 4:54 pm •
Olivier César on April 10th, at 6:51 pm •
Alejandro Martínez on April 15th, at 5:35 pm •
Alejandro Martínez on April 15th, at 5:39 pm •
Jimmy on April 15th, at 5:51 pm •
anthony on April 22nd, at 9:18 pm •
Bas on April 23rd, at 12:01 am •
No Named Anonymous Booger on April 23rd, at 4:06 am •
anthony on April 30th, at 12:58 am •
Bas on April 30th, at 1:34 am •
Frank on May 4th, at 1:16 am •
Bas on May 4th, at 12:18 pm •
Bas on May 4th, at 2:15 pm •
Frank on May 4th, at 3:02 pm •
Luke on May 11th, at 1:34 pm •
Bas on May 11th, at 2:48 pm •
Alexandar Tzanov on May 12th, at 6:29 pm •
Alexandar Tzanov on May 12th, at 6:30 pm •
Alexandar Tzanov on May 12th, at 6:31 pm •
Addie on May 14th, at 5:00 pm •
Bas on May 15th, at 3:22 pm •
hpguru on May 16th, at 10:00 am •
Rebecca on May 20th, at 3:39 pm •
Mitch on May 29th, at 2:12 am •
aivan monceller on May 31st, at 2:32 pm •
aivan monceller on May 31st, at 3:23 pm •
nathan on June 24th, at 10:08 pm •
nathan on June 24th, at 10:14 pm •