Reply To: Read More NOT showing in ALL entry summaries

#19014
Daniel Tara
Keymaster

Here’s a simple code snippet to add read more links to excerpts:

add_filter( 'the_excerpt', 'esplanade_excerpt_read_more', 30 );

function esplanade_excerpt_read_more( $excerpt ) {
	$excerpt .= sprintf( '<a href="%s">Read More &rarr;</a>', get_permalink() );
	return $excerpt;
}
  • This reply was modified 10 years, 2 months ago by Daniel Tara.