Wordpress read more Revision 386333636366 (Thu Oct 25 2012 at 13:55) - Diff Link to this snippet: https://friendpaste.com/5VKR41MQaEWziyZ9m70n2e Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 1234567891011121314151617181920if ( ! 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' );