' . esc_html__( 'Read More', 'rowling' ) . '

'; } // Add body class if is_single and has_featured_image add_filter( 'body_class', 'rowling_is_single_featured_image' ); function rowling_is_single_featured_image( $classes ){ if ( is_single() && has_post_thumbnail() ){ $classes[] = 'has-featured-image'; } return $classes; }