From 6787b9635412b445ccda7da7af0b5e90048ab2cf Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Mon, 27 Apr 2015 11:59:47 -0400 Subject: [PATCH] Fix post_parent call --- includes/helper-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/helper-functions.php b/includes/helper-functions.php index 7403867..df44476 100644 --- a/includes/helper-functions.php +++ b/includes/helper-functions.php @@ -157,7 +157,7 @@ function display_featured_image_genesis_add_archive_thumbnails() { 'order' => 'ASC', 'orderby' => 'menu_order', 'post_mime_type' => 'image', - 'post_parent' => $post_id ? $post_id : get_the_ID(), + 'post_parent' => get_the_ID(), 'post_type' => 'attachment', ); $attached_images = get_children( $args );