projects
/
WP-Themes
/
saultstemarie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ed435e
)
adding post_status to blog side bar
author
Anthony Talarico
<talarico@gaslightmedia.com>
Fri, 18 Mar 2016 20:13:14 +0000
(16:13 -0400)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Fri, 18 Mar 2016 20:13:14 +0000
(16:13 -0400)
parts/blog-sidebar-r.php
patch
|
blob
|
history
diff --git
a/parts/blog-sidebar-r.php
b/parts/blog-sidebar-r.php
index
1cb0327
..
1aa6bf7
100644
(file)
--- a/
parts/blog-sidebar-r.php
+++ b/
parts/blog-sidebar-r.php
@@
-8,7
+8,7
@@
<p>Recent Posts</p>
<ul>
<?php
- $args = array( 'numberposts' => '5' );
+ $args = array( 'numberposts' => '5'
, 'post_status' => 'publish'
);
$recent_posts = wp_get_recent_posts( $args );
foreach( $recent_posts as $recent ){
echo '<li><a href="' . get_permalink($recent["ID"]) . '">' . $recent["post_title"].'</a> </li> ';