mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-11 18:46:03 +09:00
Set post archive image
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user