Fix home using most recent post image

This commit is contained in:
Robin Cornett
2015-12-11 09:30:35 -05:00
parent 19274bb2e3
commit 4de13d0fcc
@@ -121,7 +121,7 @@ class Display_Featured_Image_Genesis_Common {
// outlier: if it's a home page with a static front page, and there is a featured image set on the home page
// also provisionally sets featured image for posts, similar to CPT archives
if ( ( is_home() && 'page' === $frontpage && ! empty( $postspage_image ) ) || 'post' === get_post_type() ) {
if ( ( is_home() && 'page' === $frontpage && ! empty( $postspage_image ) ) || is_singular( 'post' ) ) {
$image_id = $postspage_image ? $postspage_image : $image_id;
}