Add “Read More” permalink to the end of the_excerpt
11 Mai 2013, Posted by inAdding this snippet below into the functions.php file of your WordPress theme will add a “read more” permalink at the end of the_excerpt
, pretty much like what the_content
does.
function excerpt_readmore($more) { return '... <a href="'. get_permalink($post->ID) . '">' . 'Read More' . '</a>'; } add_filter('excerpt_more', 'excerpt_readmore');