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 •
Frank on July 11th, at 1:09 am •
Butch Adams on July 12th, at 3:13 pm •
fatihturan on July 12th, at 10:02 pm •
Dave on July 13th, at 6:01 am •
THE FIXER on July 15th, at 8:06 pm •
THE FIXER on July 15th, at 8:27 pm •
THE FIXER on July 15th, at 8:46 pm •
THE FIXER on July 15th, at 8:48 pm •
alvinwong on July 18th, at 11:09 am •
Li-An on July 21st, at 9:28 am •
alvinwong on July 23rd, at 4:58 am •
alvinwong on July 23rd, at 5:24 am •
K-IntheHouse on July 30th, at 11:05 pm •
Pentti Aitta on August 13th, at 12:56 pm •
Nathan on August 14th, at 5:39 pm •
Ken on August 15th, at 10:44 pm •
Leon P on September 17th, at 12:42 pm •
dave on September 17th, at 7:07 pm •
Joshua U on September 21st, at 12:51 pm •
Joshua U on September 21st, at 12:52 pm •
Joshua U on September 21st, at 12:54 pm •
Geschenke on October 4th, at 10:53 pm •
Joshua U on October 9th, at 10:02 am •
Ian on October 18th, at 8:40 pm •
Ian on October 18th, at 8:41 pm •
Heliologue on October 20th, at 8:58 pm •
Rick on October 23rd, at 4:07 pm •
Andrea on October 30th, at 6:05 pm •
Andrea on October 30th, at 6:06 pm •
Bas on October 30th, at 10:38 pm •
Andrea on October 31st, at 12:01 pm •
Remkus on October 31st, at 12:36 pm •
Remkus on October 31st, at 12:37 pm •
Bas on October 31st, at 4:37 pm •
Remkus on October 31st, at 9:53 pm •
Jon on November 14th, at 2:56 am •
Louis on November 23rd, at 6:57 am •
hpguru on November 25th, at 11:16 pm •
hpguru on November 25th, at 11:22 pm •
nargalzius on November 26th, at 8:05 pm •
nargalzius on November 26th, at 8:05 pm •
nargalzius on November 26th, at 8:06 pm •
slobjones on November 27th, at 4:55 am •
nargalzius on November 28th, at 11:30 pm •
Alan Richardson on December 28th, at 3:13 pm •
Football Shirts on December 28th, at 3:15 pm •
Tom on January 7th, at 3:34 pm •
Shelly on January 7th, at 3:50 pm •
Bas on January 7th, at 5:45 pm •
Betty on January 8th, at 8:20 am •
Bas on January 8th, at 2:50 pm •
Tom on January 11th, at 11:35 am •
Bas on January 11th, at 1:08 pm •
Matthew on January 12th, at 5:09 pm •
Bas on January 12th, at 8:21 pm •
Trude on February 3rd, at 2:47 am •
DaveCurlee on February 4th, at 1:33 am •
Bird on February 8th, at 8:20 am •
Bas on February 8th, at 5:44 pm •
Bird on February 9th, at 5:59 am •
Mylene on February 11th, at 11:48 am •
RogueDeals on February 11th, at 5:36 pm •
RogueDeals on February 11th, at 5:37 pm •
Ant on June 9th, at 5:09 pm •
Clayton on June 24th, at 4:34 pm •
Faisal Khan on June 26th, at 12:14 pm •
Tomás García Ferrari on June 30th, at 6:58 pm •
Ole Sturm on July 14th, at 1:33 pm •
Jacob on August 29th, at 7:28 am •
Bas on September 2nd, at 2:16 am •
Atomico on September 2nd, at 4:05 pm •
Lucato on November 12th, at 8:36 pm •
Paul Myatt on November 16th, at 3:09 pm •
Niska on November 19th, at 1:29 pm •
Faisal Khan on November 27th, at 3:19 am •
Hazel on January 21st, at 10:57 pm •
Hazel on January 21st, at 10:58 pm •
DAniel on February 8th, at 9:14 pm •
Bas on February 8th, at 9:43 pm •
Daniel on February 8th, at 9:52 pm •
Igor on February 9th, at 8:27 pm •
Igor on February 9th, at 8:41 pm •
Igor on February 9th, at 8:43 pm •
Malcolm McAtee on February 18th, at 8:54 pm •
chris on February 24th, at 4:17 pm •
Fred on June 1st, at 5:40 pm •
Bas on June 1st, at 6:42 pm •