a simple function to take long content (a post, comment, bio, etc) and shorten it to any length without chopping words in half. Also adds a […] if the content is shortened. Allows you to specify a “short word length” (for words like: the, and, it, or… ) simply add the function from the attached file to your functions.php file, and then call the function as listed in the example below:

//example function call
//shorten('text', number of words, length of short word)
 shorten($content, 300, 3)