Set post archive image

This commit is contained in:
Robin Cornett
2015-06-08 15:22:35 -04:00
parent d84de9c6c4
commit ce287b0f2c
@@ -146,7 +146,8 @@ 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
if ( is_home() && 'page' === $frontpage && ! empty( $postspage_image ) ) {
// also provisionally sets featured image for posts, similar to CPT archives
if ( ( is_home() && 'page' === $frontpage && ! empty( $postspage_image ) ) || 'post' === get_post_type() ) {
$image_id = $postspage_image;
}