add_image_size('glm_blocks', '257', '257', true);
// needed to keep Woocommerce from constantly complaining.
add_theme_support( 'woocommerce' );
-?>
-
-<?php
- $number_recents_posts = 3;
- $args=array('numberposts' => $number_recents_posts,'post_status'=>'publish');
-
- $recent_posts = wp_get_recent_posts( $args );
- foreach($recent_posts as $post){
- echo '<li><a href="' . get_permalink($post["ID"]) . '" title="Look '.$post["post_title"].'" >' . $post["post_title"].'</a> <hr class="skinnydivider" /></li> ';
- }
?>
\ No newline at end of file
<p>Recent Posts</p>
<ul>
<?php
- $args = array( 'numberposts' => '5' );
+ $number_recents_posts = 5;
+ $args=array('numberposts' => $number_recents_posts,'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> ';