mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-11 18:46:03 +09:00
Change how the post meta is retrieved
This commit is contained in:
@@ -260,7 +260,8 @@ class Display_Featured_Image_Genesis_Output {
|
||||
$exclude_front = is_front_page() && $setting['exclude_front'];
|
||||
$post_type = get_post_type();
|
||||
$skip_singular = is_singular() && isset( $setting['skip'][ $post_type ] ) && $setting['skip'][ $post_type ] ? true : false;
|
||||
$post_meta = is_singular() && 1 === (int) get_post_meta( get_the_ID(), '_displayfeaturedimagegenesis_disable', true );
|
||||
$post_id = displayfeaturedimagegenesis_get()->get_post_id();
|
||||
$post_meta = 1 === (int) get_post_meta( $post_id, '_displayfeaturedimagegenesis_disable', true );
|
||||
|
||||
if ( $this->get_skipped_posttypes() || $skip_singular || $exclude_front || $post_meta ) {
|
||||
$disable = true;
|
||||
|
||||
Reference in New Issue
Block a user