wordpress snippets last updated   : October 6, 2014
we now have 641 snippets
category excerpt

Use wp_trim_words to trim your text in wordpress

wordpress snippet

WordPress 3.3+ has a core function called wp_trim_words() this function will trim text to a specified number of words and return the result. Adding this snippet to your wordpress loop will let you easily trim the number of words displayed within the_content, the_excerpt, the_title or any other value you pass to this core function.

read more

No excerpt available, display default message

wordpress snippet

Adding this snippet to your wordpress theme will allow you to display a default message when no excerpt has been added.

read more

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

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

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

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
jqsnipp.com | we just launched jquery snippets website