From: Laury GvR Date: Wed, 8 Jun 2016 17:15:36 +0000 (-0400) Subject: Only show published pages on blog feed frontpage X-Git-Tag: v1.2.26^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=fd341a2d250f16e063fa14193fa2d7cdfeb35e70;p=WP-Themes%2Fgilmoremuseum.git Only show published pages on blog feed frontpage --- diff --git a/front-page.php b/front-page.php index 44da776..1845cb6 100644 --- a/front-page.php +++ b/front-page.php @@ -20,7 +20,10 @@
3); + $args = array( + 'numberposts' => 3, + 'post_status' => 'publish' + ); $lastposts = get_posts( $args ); foreach($lastposts as $post) : setup_postdata($post); ?>