Update the home page blog feed to have urls for the read more.
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 18 Oct 2016 21:05:27 +0000 (17:05 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 18 Oct 2016 21:05:27 +0000 (17:05 -0400)
Also linking the image.

parts/blog-feed-front.php

index 9cac7bf..8a3874c 100644 (file)
@@ -10,7 +10,7 @@ foreach($lastposts as $post) : setup_postdata($post); ?>
             <div class="row column">
                 <?php if (has_post_thumbnail( $post->ID )) { ?>
                 <div class="small-12 small-centered columns text-center home-feed-post-image">
-                    <?php echo get_the_post_thumbnail($post->ID, array(394, 265), array('class' => 'blog-excerpt-img-wrap')); ?>
+                   <a href="<?php the_permalink(); ?>"><?php echo get_the_post_thumbnail($post->ID, array(394, 265), array('class' => 'blog-excerpt-img-wrap')); ?></a>
                 </div>
                 <div class="small-12 medium-12 columns home-feed-post-content">
                  <?php } else { ?>
@@ -18,11 +18,11 @@ foreach($lastposts as $post) : setup_postdata($post); ?>
                 <?php } ?>
                     <h5 class="title-posts"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>
                     <div class="excerpt<?php echo $count ?>"><?php echo the_advanced_excerpt('length=265&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=img,strong,h1,h2,h3,hr,div'); ?></div>
-                    <a href="#">find out more...</a>
+                    <a href="<?php the_permalink(); ?>">find out more...</a>
                 </div>
             </div>
         </div>
         <?php $count++; ?>
 <?php endforeach; ?>
-    </div>    
-</div>
\ No newline at end of file
+    </div>
+</div>