Created
January 2, 2014 02:16
-
-
Save katmoody/8214042 to your computer and use it in GitHub Desktop.
Add Read More Link to Excerpts in Wordpress From http://flyingchangewebs.com/adding-the-read-more-link-in-genesis/
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
// Add Read More Link to Excerpts | |
add_filter('excerpt_more', 'get_read_more_link'); | |
add_filter( 'the_content_more_link', 'get_read_more_link' ); | |
function get_read_more_link() { | |
return '... <a href="' . get_permalink() . '">[Read More]</a>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment