From 98f6403cccd2c59a64f6ce2dcacd768689ac6da1 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 4 Feb 2016 10:14:55 -0500 Subject: [PATCH] Only display published recent blog posts --- functions.php | 10 ---------- parts/blog-sidebar-r.php | 3 ++- 2 files changed, 2 insertions(+), 11 deletions(-) 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