Nowadays, WordPress Post Excerpt is used in almost every blog to display Post summary on Archive pages and Search result page. This post will show you how to add [Read more…] in WordPress post excerpt with a link to post single page.
Add below code in your function.php file of your theme.
//Add “Read More” to Automatically Generated Excerpts
function add_read_more_to_excerpt($excerpt) {
if (!is_admin()) {
$excerpt .= ' ';
}
return $excerpt;
}
add_filter('the_excerpt', 'add_read_more_to_excerpt');
// Customize the Default Excerpt More Text
function custom_excerpt_more($more) {
return '... Read More »';
}
add_filter('excerpt_more', 'custom_excerpt_more');
