From 637485071ac175ea10f36361f18d8912f54e4ef9 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 30 Oct 2018 10:28:40 -0400 Subject: [PATCH] checking for published epicenter posts before trying to output them in the frontpage sidebar --- sidebar.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/sidebar.php b/sidebar.php index 9dfda4a..880d2c4 100644 --- a/sidebar.php +++ b/sidebar.php @@ -33,14 +33,16 @@ 'suppress_filters' => true, ); - $epicenter_blog = get_posts( $args )[0]; + + $epicenter_blog = get_posts( $args )[0]; $date = strtotime($epicenter_blog->post_date); ?> -

post_title; ?>

-
-

ID, 35);?>...

+ +

post_title; ?>

+
+

ID, 35);?>...

+ - - + \ No newline at end of file -- 2.17.1