projects
/
WP-Themes
/
gilmoremuseum.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
505d578
)
Only show published pages on blog feed frontpage
author
Laury GvR
<laury@gaslightmedia.com>
Wed, 8 Jun 2016 17:15:36 +0000
(13:15 -0400)
committer
Laury GvR
<laury@gaslightmedia.com>
Wed, 8 Jun 2016 17:15:36 +0000
(13:15 -0400)
front-page.php
patch
|
blob
|
history
diff --git
a/front-page.php
b/front-page.php
index
44da776
..
1845cb6
100644
(file)
--- a/
front-page.php
+++ b/
front-page.php
@@
-20,7
+20,10
@@
<div class="feed">
<img src="<?php bloginfo('template_url'); ?>/assets/Homepage - NEWS.jpg">
<?php
- $args = array( 'numberposts' => 3);
+ $args = array(
+ 'numberposts' => 3,
+ 'post_status' => 'publish'
+ );
$lastposts = get_posts( $args );
foreach($lastposts as $post) : setup_postdata($post); ?>
<div>