Last active
March 8, 2016 17:23
-
-
Save marisqaporter/fe89f8282251e21109fb to your computer and use it in GitHub Desktop.
stop genesis from setting first image as featured image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*stop genesis from setting first image as featured */ | |
function remove_featured_image_archives( $post ) { | |
if( !has_post_thumbnail() ) | |
$post = ''; | |
return $post; | |
} | |
add_filter( 'genesis_pre_get_image', 'remove_featured_image_archives', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment