Created
June 5, 2017 00:37
-
-
Save jpgninja/5633321c0ef98f7e66bd676d5214625a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Clip blog post excerpts | |
* | |
*/ | |
add_filter('get_the_excerpt','excerpt_char_limit'); | |
function excerpt_char_limit($e){ | |
return substr($e,0,150) . '…'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment