From: Steve Sutton Date: Tue, 23 Feb 2016 21:15:22 +0000 (-0500) Subject: Update blog recent post to only published ones X-Git-Tag: v1.0.6^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=33743ef7da2e53eb35b6a7ed00a0ac8c189f7f21;p=WP-Themes%2Fshipwreckmuseum.git Update blog recent post to only published ones --- 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 */