Revision 386333636366 () - Diff

Link to this snippet: https://friendpaste.com/5VKR41MQaEWziyZ9m70n2e
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
if ( ! function_exists( 'boilerplate_custom_excerpt_more' ) ) :
/**
* Adds a pretty "Continue Reading" link to custom post excerpts.
*
* To override this link in a child theme, remove the filter and add your own
* function tied to the get_the_excerpt filter hook.
*
* @since Twenty Ten 1.0
* @return string Excerpt with a pretty "Continue Reading" link
*/
function boilerplate_custom_excerpt_more( $output ) {
if ( has_excerpt() && ! is_attachment() ) {
$output .= boilerplate_continue_reading_link();
}
return $output;
}

endif;
add_filter( 'get_the_excerpt', 'boilerplate_custom_excerpt_more' );