Before talking about the custom excerpt more in WordPress let’s talk about the general meaning of the excerpt. It means a short extract from anything. So when it comes to the WordPress, excerpt means _a short extract from the blog post. _Excerpt in the blog is one of the important thing that every WordPress user uses it for the customisation.

By default WordPress provides the custom excerpt with specific length of the letters(55) and followed by […] symbol in the posts. By adding the following line we can display the excerpt.

<?php the_excerpt(); >

The default WordPress excerpt more will be shown like the following image

How to add Custom Excerpt More?

Adding a custom excerpt more in the WordPress posts is very easy. Adding of simple lines of code in the functions.php file is needed. Let’s not talk in technical aspects, we are adding a small function in php to print ‘…’ instead of printing ‘[…]’ and also we tell to WordPress to use our new lbs_excerpt_more instead of using the default excerpt_more function.

//Defining custom excerpt more
function new_lbs_excerpt_more( $more ) {
  return '...';
}
//Telling wordpress to use new_lbs_excerpt_more function rather than default one
add_filter('excerpt_more', 'new_lbs_excerpt_more');

After adding these line in functions.php you can get the new defined custom excerpt in posts as shown in below picture

If we need to have a link instead of those symbols as shown in the above tutorial we have to return the anchor tag from the new_lbs_excerpt_more function.

//Defining custom excerpt more
function new_lbs_excerpt_more( $more ) { 
 global $post;
 return '&lt;a class="more-link" href="'. get_permalink($post-&gt;ID) . '"&gt;'. __('Read More', 'lbs') .'&lt;/a&gt;';
}
//Telling wordpress to use new_lbs_excerpt_more function rather than default one
add_filter('excerpt_more', 'new_lbs_excerpt_more');

After adding these line in functions.php you can get the new defined custom excerpt in posts as shown in below picture