Created
July 12, 2012 03:23
-
-
Save johndugan/3095474 to your computer and use it in GitHub Desktop.
WordPress: custom excerpt elipsis
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
// ------------------------------------------------------------------- | |
// ---------- Change default [...] string for post excerpts ---------- | |
// ------------------------------------------------------------------- | |
<?php | |
function new_excerpt_more($more) { | |
return '{...}'; | |
} | |
add_filter('excerpt_more', 'new_excerpt_more'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment