mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-19 06:23:22 +09:00
fix archive thumbnail helper
Add check to see if featured image is set to display.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user