Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // toss this in your functions.php (or elsewhere)
- function get_shorty($count = 15){
- global $post;
- $str = get_the_content();
- $str = implode(' ', array_slice(explode(' ', $str), 0, $count));
- return $str.'...';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement