From a99d7ee29b5fa7068fe3ede7ef5182039111138c Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 8 Sep 2016 11:12:07 -0400 Subject: [PATCH] removing private and drafts from the landing page template. no private or draft pages should appear --- landing-page.php | 51 ++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/landing-page.php b/landing-page.php index 5c35396..bc5e7c6 100644 --- a/landing-page.php +++ b/landing-page.php @@ -30,40 +30,41 @@ Template Name: Landing Page
-
- -
-
- ID ); ?> - ' . apply_filters('the_content', $page_object->post_content) . '
'; ?> +
+ +
+
+ ID ); ?> + ' . apply_filters('the_content', $page_object->post_content) . ''; ?>
have_posts() ) : ?> have_posts() ) : $parent->the_post(); ?> + + - -
- - - - - -
- -
+ if(get_post_thumbnail_id($id)){ + $image_data = wp_get_attachment_image_src(get_post_thumbnail_id($id), 'glm_block'); + } else { + $image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post_parent), 'glm_block'); + } + ?> +
+ + + + + +
+
+ +
- -- 2.17.1