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

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

Display total published words in “Right Now” admin dashboard

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will display the total number of published words from posts and pages. This is displayed at the bottom of the “Right Now” box in your wordpress admin dashboard.

read more
jqsnipp.com | we just launched jquery snippets website