--- /dev/null
+<?php $args = array( 'numberposts' => 3);?>
+<h1>EMMET COUNTY NEWS</h1>
+<div id="home-feed-posts">
+<?php
+$lastposts = get_posts( $args );
+foreach($lastposts as $post) : setup_postdata($post); ?>
+ <div class="home-feed-post">
+ <div class="row">
+ <?php if (has_post_thumbnail( $post->ID )) { ?>
+ <div class="small-8 small-centered medium-3 medium-uncentered columns home-feed-post-image">
+ <?php echo get_the_post_thumbnail($post->ID, array(190, 190), array('class' => 'blog-excerpt-img-wrap')); ?>
+ </div>
+ <div class="small-12 medium-9 columns home-feed-post-content">
+ <?php } else { ?>
+ <div class="small-12 columns home-feed-post-content">
+ <?php } ?>
+ <h2 class="title-posts" href="<?php the_permalink(); ?>"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
+ <div><?php echo the_advanced_excerpt('length=95&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,strong,h1,h2,h3,hr,div'); ?></div>
+ </div>
+ </div>
+ </div>
+<?php endforeach; ?>
+</div>
return;
}
?>
-<h1>EMMET COUNTY NEWS</h1>
-<div id="home-feed-posts">
<?php
$lastposts = get_posts( $args );
foreach($lastposts as $post) : setup_postdata($post); ?>
</div>
</div>
<?php endforeach; ?>
-</div>