Created
June 28, 2012 20:58
-
-
Save billerickson/3013862 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 | |
/** | |
* Make excerpt elipsis a link | |
* | |
* @author Bill Erickson | |
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_more | |
* | |
* @param string $more | |
* @return string | |
*/ | |
function be_excerpt_link( $more ) { | |
return '<a href="' . get_permalink() . '">' . $more . '</a>'; | |
} | |
add_filter( 'excerpt_more', 'be_excerpt_link', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment