From 2a4dc7d09c3b18a3e0346a0c62cd88789ee49666 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 24 Mar 2017 08:38:21 -0400 Subject: [PATCH] adding post parent checking for featured images --- functions.php | 4 ++++ js/app.js | 13 ++++++++----- js/custom/pageSetup.js | 13 ++++++++----- scss/_topbar.scss | 1 - 4 files changed, 20 insertions(+), 11 deletions(-) diff --git a/functions.php b/functions.php index 7ca0773..de894e3 100644 --- a/functions.php +++ b/functions.php @@ -99,6 +99,10 @@ function glm_site_scripts() function glm_get_header() { global $post; $post_id = $post->ID; + + if ( $post->post_parent && !has_post_thumbnail($post->ID)){ + $post_id = $post->post_parent; + } echo '