Created
October 14, 2013 12:23
-
-
Save RhythmShahriar/6974801 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 | |
/**------------------------------------------- | |
* @package Code Snippets | |
* @link http://rhythmshahriar.com/code/ | |
* @author Rhythm <[email protected]> | |
* @copyright Copyright (c) 2013, Rhythm Shahriar | |
-------------------------------------------------*/ | |
// Modify the WordPress read more link | |
add_filter('excerpt_more','rs_custom_read_more'); | |
add_filter('get_the_content_more_link','rs_custom_read_more'); | |
add_filter('the_content_more_link','rs_custom_read_more'); | |
function rs_custom_read_more() { | |
return ' ... <a class="learn-more" href="' . get_permalink() .'" rel="nofollow">read more</a><br>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment