From b796de4998d725c771cf38ecf490e9ee0c88bce4 Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Tue, 17 Mar 2015 10:13:43 -0400 Subject: [PATCH] fix archive thumbnail helper Add check to see if featured image is set to display. --- includes/helper-functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/helper-functions.php b/includes/helper-functions.php index 62562e8..ca41245 100644 --- a/includes/helper-functions.php +++ b/includes/helper-functions.php @@ -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; }