How to Add a Read More Link to Manual Excerpts

If you purchase through a link on our site, we may earn a commission. Learn more.

If you want to add a 'read more' link to your manual excerpts, here's how to do it. I tested this code with a child theme from Genesis but it should work for all themes.
Table of Contents
WP Engine High Performance Hosting
BionicWP Hosting

If you want to add a ‘read more’ link to your manual excerpts, here’s how to do it.

//* Changing excerpt more - only works where excerpt IS hand-crafted
function manual_excerpt_more( $excerpt ) {
	$excerpt_more = '';
	if( has_excerpt() ) {
    	$excerpt_more = '&nbsp;<a href="' . get_permalink() . '" rel="nofollow">[Read more]</a>';
	}
	return $excerpt . $excerpt_more;
}
add_filter( 'get_the_excerpt', 'manual_excerpt_more' );

I tested this code with a child theme from Genesis but it should work for all themes.

If you enjoyed this post, make sure to subscribe to WP Mayor’s RSS feed.

Jean Galea

Jean Galea is an investor, entrepreneur, and blogger. He is the founder of WP Mayor, the plugins WP RSS Aggregator and Spotlight, as well as the Mastermind.fm podcast. His personal blog can be found at jeangalea.com.

Discover more from our , archives ↓

Popular articles ↓

6 Responses

  1. Hi! Thank you very much!
    May be you know how to make that my custom more link showing in same paragraph. Now it looks like that:

    (paragraph tag open)
    here manual excerpt text
    (paragraph tag close)
    (paragraph tag open)
    here my custom more link
    (paragraph tag close)

    I want to display more link inline at the end of excerpt text, after last letter.

  2. The manually created excerpts don’t have anything like “read more” in the RSS feed. The posts have the link on the main page. When I look in the RSS feed, I can see that the automatically generated excerpts have […] at the end. Do you know how to add something to those manually created excerpts in the RSS feed?

Share Your Thoughts

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

Claim Your Free Website Tip 👇

Leave your name, email and website URL below to receive one actionable improvement tip tailored for your website within the next 24 hours.

"They identified areas for improvement that we had not previously considered." - Elliot

By providing your information, you'll also be subscribing to our weekly newsletter packed with exclusive content and insights. You can unsubscribe at any time with just one click.