updated   : May 15, 2012
we now have 588 snippets
category excerpt
By : , on May 14, 2012 9:00 am

Highlight keywords in search results within the_excerpt and the_title

wordpress snippet

I whipped up this little snippet that you can add to the functions.php of your wordpress theme to highlight keywords in search results for the_excerpt and the_title. A few highlight search results snippets floating around including a great one by Michael Martin. However they require you edit template files so this is my take on Michaels Idea.

read more
By : , on November 14, 2011 9:00 am

Increase the excerpt field height

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will increase height of the excerpt field within your post editing screen.

read more
By : , on August 01, 2011 9:00 am

Enable TinyMCE editor for post the_excerpt

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add the TinyMCE editor to the post excerpt textarea.

read more
By : , on June 10, 2011 9:00 am

Convert URI, www, ftp, and emails into clickable links

wordpress snippet

This is a simple snippet but a gem I have used in several projects. Adding this snippet to the functions.php of your wordpress theme converts URI, www, ftp, and email addresses into clickable links within the_content and or the_excerpt enjoy!

read more
By : , on May 25, 2011 9:00 am

Add “Read More” permalink to the end of the_excerpt

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add a “read more” permalink at the end of the excerpt much like the_content does.

read more
By : , on March 26, 2011 9:00 am

Automatically add text to the post excerpt

wordpress snippet

You may or may not have already seen the code we posted to automatically add text to new posts so we setup some code to do the same for your excerpt. Adding this code to the functions.php of your wordpress theme will automatically add text to your excerpt field when creating a new post.

read more
By : , on March 21, 2011 9:00 am

Add a character counter to excerpt metabox

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add a character counter to excerpt metabox. Update: Made a small update to a more appropriate hook, thanks Andrew.

read more
By : , on January 31, 2011 2:00 pm

Check if post has the_excerpt

wordpress snippet

Adding this PHP code to your wordpress theme will allow you to check if a post contains an excerpt. Wordpress will use the post as an excerpt when one does not exists so this is a great way to display the excerpt when not every post will contain one.

read more