How to Add a Read More link in WordPress Excerpts Content
To prevent duplicate content, improve site load time, and for better SEO many bloggers have started to use post excerpts. Excerpts are mini-descriptions of the posts shown on the main blog page, category pages, and archive pages.
First open your functions.php file, and paste the following code inside the php tags:
<?php // Changing excerpt more
function new_excerpt_more($more) {
global $post;
return '… <a href="'. get_permalink($post->ID) . '">' . 'Read More »' . '';
}
add_filter('excerpt_more', 'new_excerpt_more');
?>
In this function, you are telling WordPress to remove the default more which looks like this: […], and replace it with a link
Popular Posts Hits
How to Add a Read More link in WordPress Excerpts Content
To prevent duplicate content, improve site load time, and for better SEO many bloggers have started to use post excerpts. Excerpts are mini-descriptions of the posts shown on the main blog page, category pages, and archive pages.
First open your functions.php file, and paste the following code inside the php tags:
In this function, you are telling WordPress to remove the default more which looks like this: […], and replace it with a link
Already have an account? Login into comment