Created
February 28, 2012 15:14
-
-
Save roose/1933030 to your computer and use it in GitHub Desktop.
Excerpt more string & length
This file contains 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 | |
function go_excerpt( $more ) { | |
return '...'; | |
} | |
add_filter( 'excerpt_more', 'go_excerpt' ); | |
function go_excerpt_length( $length ) { | |
return 30; | |
} | |
add_filter( 'excerpt_length', 'go_excerpt_length' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment