keithg

Read more with get_the_content

function getWords($text, $limit) { $array = explode(” “, $text, $limit+1); if (count($array) > $limit) { unset($array[$limit]); } return implode(” “, $array); } $mycontent = getWords(get_the_content(),25);Read more …