From: Anthony Talarico Date: Thu, 8 Sep 2016 15:12:07 +0000 (-0400) Subject: removing private and drafts from the landing page template. no private or draft pages... X-Git-Tag: v1.0.0^2~19 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=a99d7ee29b5fa7068fe3ede7ef5182039111138c;p=WP-Themes%2Fpetoskeyarea.git removing private and drafts from the landing page template. no private or draft pages should appear --- 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'); + } + ?> +
+ + + + + +
+
+ +
-