' . sprintf( __( 'Continue reading %1$s', 'snaps' ), esc_attr( strip_tags( get_the_title() ) ) ) . ''; } endif; // snaps_continue_reading_link /** * Replaces "[...]" (appended to automatically generated excerpts) with snaps_continue_reading_link(). * * To override this in a child theme, remove the filter and add your own * function tied to the excerpt_more filter hook. */ function snaps_auto_excerpt_more( $more ) { return snaps_continue_reading_link(); } add_filter( 'excerpt_more', 'snaps_auto_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. */ function snaps_custom_excerpt_more( $output ) { if ( has_excerpt() && ! is_attachment() ) { $output .= snaps_continue_reading_link(); } return $output; } add_filter( 'get_the_excerpt', 'snaps_custom_excerpt_more' );