Wednesday, January 28, 2015

excerpt or read more text cut program

$content=get_the_content();
$words = explode(" ", $content);
$first = join(" ", array_slice($words, 0, 50));
echo $first;

No comments:

Post a Comment

Suomen kieli (Imperfekti)

In Finnish, the imperfekti is the past tense that describes actions that happened in the past, like the English simple past (e.g., "I ...