projects
/
WP-Themes
/
littlefieldtownship.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67f6f04
)
adding post_status to blog sidebar recent posts
author
Anthony Talarico
<talarico@gaslightmedia.com>
Fri, 18 Mar 2016 20:40:55 +0000
(16:40 -0400)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Fri, 18 Mar 2016 20:40:55 +0000
(16:40 -0400)
parts/blog-sidebar-r.php
patch
|
blob
|
history
diff --git
a/parts/blog-sidebar-r.php
b/parts/blog-sidebar-r.php
index
7662a10
..
cc6b7b2
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> ';