projects
/
web
/
GruntInit
/
glmTheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78d8fc5
)
updated blog sidebar code
author
Ian Weller
<ian@gaslightmedia.com>
Tue, 23 Feb 2016 22:00:59 +0000
(17:00 -0500)
committer
Ian Weller
<ian@gaslightmedia.com>
Tue, 23 Feb 2016 22:00:59 +0000
(17:00 -0500)
root/parts/blog-sidebar-r.php
patch
|
blob
|
history
diff --git
a/root/parts/blog-sidebar-r.php
b/root/parts/blog-sidebar-r.php
index
1cb0327
..
c365130
100644
(file)
--- a/
root/parts/blog-sidebar-r.php
+++ b/
root/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> ';