fix archive thumbnail helper

Add check to see if featured image is set to display.
This commit is contained in:
Robin Cornett
2015-03-17 10:13:43 -04:00
parent 94ca61c0e6
commit b796de4998
+3 -1
View File
@@ -137,7 +137,9 @@ function display_featured_image_genesis_get_cpt_image_url( $size='displayfeature
*/
function display_featured_image_genesis_add_archive_thumbnails() {
if ( is_singular() || is_admin() || is_404() ) {
$show_thumbs = genesis_get_option( 'content_archive_thumbnail' );
if ( is_singular() || is_admin() || is_404() || ! $show_thumbs ) {
return;
}