Created
March 7, 2014 01:59
-
-
Save jaredatch/9403619 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Replace Excerpt Ellipsis | |
* | |
* @since 1.0.0 | |
* @param strin $content | |
* @return string | |
*/ | |
function ja_remove_except_ellipsis( $content ) { | |
return str_replace( '[…]', '<a href="' . get_permalink() . '" class="continue-reading">Continue Reading→</a>', $content ); | |
} | |
add_filter('the_excerpt', 'ja_remove_except_ellipsis'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment