From: Laury GvR Date: Thu, 4 Feb 2016 15:14:55 +0000 (-0500) Subject: Only display published recent blog posts X-Git-Tag: v1.0.15^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=98f6403cccd2c59a64f6ce2dcacd768689ac6da1;p=WP-Themes%2Fstaffords.git Only display published recent blog posts --- diff --git a/functions.php b/functions.php index 6559ebf..7948744 100644 --- a/functions.php +++ b/functions.php @@ -143,14 +143,4 @@ add_action('thematic_searchloop', 'mytheme_search_loop'); add_image_size('glm_blocks', '257', '257', true); // needed to keep Woocommerce from constantly complaining. add_theme_support( 'woocommerce' ); -?> - - $number_recents_posts,'post_status'=>'publish'); - - $recent_posts = wp_get_recent_posts( $args ); - foreach($recent_posts as $post){ - echo '
  • ' . $post["post_title"].'
  • '; - } ?> \ No newline at end of file diff --git a/parts/blog-sidebar-r.php b/parts/blog-sidebar-r.php index 1cb0327..ebf0ace 100644 --- a/parts/blog-sidebar-r.php +++ b/parts/blog-sidebar-r.php @@ -8,7 +8,8 @@

    Recent Posts