get_content
/**
* content
*
* Limit the size of text
*
* @param int $limit quantity to excerpt
* @return void
*/
function content($limit) {
$content = explode(' ', get_the_content(), $limit);
if ( count( $content ) >= $limit ):
array_pop($content);
$content = implode(" ",$content).'...';
else:
$content = implode(" ",$content);
endif;
$content = preg_replace('/[.+]/','', $content);
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
return $content;
}