Skip to content

Instantly share code, notes, and snippets.

@CoralSilver
Created March 29, 2014 22:29
Show Gist options
  • Save CoralSilver/9864078 to your computer and use it in GitHub Desktop.
Save CoralSilver/9864078 to your computer and use it in GitHub Desktop.
Snippet from Wordpress Codex to make excerpts display "read more"
function excerpt_read_more_link($output) {
global $post;
return $output . '<a href="'. get_permalink($post->ID) . '"> Read More...</a>';
}
add_filter('the_excerpt', 'excerpt_read_more_link');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment