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' );