Update for blog feed
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 10 Nov 2015 16:44:31 +0000 (11:44 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 10 Nov 2015 16:44:31 +0000 (11:44 -0500)
parts/blog-feed.php

index dd158ba..d08011f 100644 (file)
@@ -7,6 +7,7 @@ if (is_front_page()) {
     $args = array( 'numberposts' => 3, 'category' => 19);
 } else if (is_page(6963)) { // Veterans Stories
     $args = array( 'numberposts' => 3, 'category' => 68);
+    $args = array( 'numberposts' => 3);
 } else if (is_page(11786)) { // Parks and Rec
     $args = array( 'numberposts' => 3, 'category' => 26);
 } else if (is_page(1257)) { // Sheriff
@@ -18,22 +19,22 @@ if (is_front_page()) {
 <?php
 $lastposts = get_posts( $args );
 foreach($lastposts as $post) : setup_postdata($post); ?>
-    <div class="row content blog-post-container home-feed-post">
-        <div class="small-11 small-centered columns">
-            <?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 } ?>
-                <header class="entry-header">
-                    <h3 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h3>
-                    <span class="meta date">Posted on <?php the_time('F jS, Y') ?></span>
-                </header>
-                <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 class="row content blog-post-container home-feed-post">
+    <div class="small-11 small-centered columns">
+        <?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 } ?>
+            <header class="entry-header">
+                <h3 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h3>
+                <span class="meta date">Posted on <?php the_time('F jS, Y') ?></span>
+            </header>
+            <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; ?>