Want to know what WordPress Theme a site is using? Check Out Now!

How to Add “Read More” Permalink to the End of the_excerpt?

Are you looking for a way to add a “Read More” permalink to the end of the the_excerpt in WordPress?

Many WordPress themes don’t come with a Read More link at the end of the_excerpt, so you might have to do it explicitly.

The code below adds a ‘Read More’ permalink to the end of the_excerpt automatically in WordPress.

 * Remove Comments Column from Pages in WordPress Admin
function maverick_excerpt_readmore($more) {
    return '... <a href="'. get_permalink($post->ID) . '" class="readmore">' . 'Read More' . '</a>';
add_filter('excerpt_more', 'maverick_excerpt_readmore');

Leave a Reply

Your email address will not be published. Required fields are marked *