<div id="blog-side-info-wrapper" class="small-11 small-only-text-center medium-3 columns">
<div id="blog-side-info">
-
+
<h2>Recent Posts</h2>
<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> ';
?>
</ul>
</div>
- </div>
\ No newline at end of file
+ </div>