%2$s', esc_url( get_permalink( get_the_ID() ) ), /* translators: %s: Name of current post */ sprintf( esc_html__( 'Continue reading %s', 'radcliffe-2' ), '' . get_the_title( get_the_ID() ) . '' ) ); return ' … ' . $link; } add_filter( 'excerpt_more', 'radcliffe_2_excerpt_more' ); endif; /** * Add featured image as background image. */ function radcliffe_2_background_image() { $image = radcliffe_2_get_attachment_image_src( get_the_ID(), get_post_thumbnail_id( get_the_ID() ), 'radcliffe-post-image' ); if ( ! $image ) { return; } printf( ' style="background-image: url(\'%s\');"', esc_url( $image ) ); }