mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-18 05:53:23 +09:00
Add 404 to disallowed cpt/term images
This commit is contained in:
@@ -72,7 +72,7 @@ class Display_Featured_Image_Genesis_Common {
|
||||
|
||||
$object = get_queried_object();
|
||||
// cpt
|
||||
if ( is_main_query() && ( ! is_author() && ! is_admin() && ! is_search() ) ) {
|
||||
if ( is_main_query() && ( ! is_author() && ! is_admin() && ! is_search() && ! is_404() ) ) {
|
||||
if ( $object->name ) { // results in post type on cpt archive
|
||||
$post_type = $object->name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user