a | b | |
---|
| 0 | + | if ( ! function_exists( 'boilerplate_custom_excerpt_more' ) ) : |
---|
| 0 | + | /** |
---|
| 0 | + | * Adds a pretty "Continue Reading" link to custom post excerpts. |
---|
| 0 | + | * |
---|
| 0 | + | * To override this link in a child theme, remove the filter and add your own |
---|
| 0 | + | * function tied to the get_the_excerpt filter hook. |
---|
| 0 | + | * |
---|
| 0 | + | * @since Twenty Ten 1.0 |
---|
| 0 | + | * @return string Excerpt with a pretty "Continue Reading" link |
---|
| 0 | + | */ |
---|
| 0 | + | |
---|
| 0 | + | function boilerplate_custom_excerpt_more( $output ) { |
---|
| 0 | + | if ( has_excerpt() && ! is_attachment() ) { |
---|
| 0 | + | $output .= boilerplate_continue_reading_link(); |
---|
| 0 | + | } |
---|
| 0 | + | return $output; |
---|
| 0 | + | } |
---|
| 0 | + | |
---|
| 0 | + | endif; |
---|
| 0 | + | add_filter( 'get_the_excerpt', 'boilerplate_custom_excerpt_more' ); |
---|
... | |
---|