To add read more link after post excerpt

 add_filter( 'excerpt_more', 'excerpt_more_example' );
 
function excerpt_more_example( $text ) {
    global $post;
    return '... <a class="read-more-link" href="' . get_permalink( $post->ID ) . '">Read more</a>';
}
 

Leave a Reply