From 33743ef7da2e53eb35b6a7ed00a0ac8c189f7f21 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 23 Feb 2016 16:15:22 -0500 Subject: [PATCH] Update blog recent post to only published ones --- parts/blog-sidebar-r.php | 6 +++--- style.css | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/parts/blog-sidebar-r.php b/parts/blog-sidebar-r.php index 3953ea8..b83ee45 100644 --- a/parts/blog-sidebar-r.php +++ b/parts/blog-sidebar-r.php @@ -1,10 +1,10 @@
- +

Recent Posts

    '5' ); + $args = array( 'numberposts' => '5','post_status'=>'publish' ); $recent_posts = wp_get_recent_posts( $args ); foreach( $recent_posts as $recent ){ echo '
  • ' . $recent["post_title"].'
  • '; @@ -26,4 +26,4 @@ ?>
-
\ No newline at end of file + diff --git a/style.css b/style.css index 091e827..298d89d 100644 --- a/style.css +++ b/style.css @@ -3,5 +3,5 @@ Theme Name: GreatLakesShipwreckMuseum Author: Gaslight Media Author URI: http://www.gaslightmedia.com Description: A theme for GreatLakesShipwreckMuseum -Version: 1.0.5 +Version: 1.0.6 */ -- 2.17.1