Update blog single page to include the featured image on the top of the
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 10 Nov 2015 17:05:49 +0000 (12:05 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 10 Nov 2015 17:05:49 +0000 (12:05 -0500)
post

single.php

index 2880d55..7bca705 100644 (file)
@@ -17,6 +17,9 @@
                         <div class="row">
                             <div class="small-12 columns">
                                 <article id="<?php the_ID()?>" <?php post_class()?>>
+                                    <?php if (has_post_thumbnail( $post->ID )) { ?>
+                                        <?php echo get_the_post_thumbnail($post->ID, 'full'); ?>
+                                    <?php } ?>
                                     <?php echo the_content(); ?>
                                     <footer class="entry-meta small-12 medium-6 medium-push-3 center">
                                         <?php $post_categories = wp_get_post_categories( get_the_ID() );