Put The Loop around the_content
authorLaury GvR <laury@gaslightmedia.com>
Mon, 6 Apr 2015 15:24:58 +0000 (11:24 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 6 Apr 2015 15:24:58 +0000 (11:24 -0400)
front-page.php

index c9061a7..5eaf42d 100644 (file)
@@ -8,7 +8,11 @@
                 <div class="row content">
                     <div id="welcome" class="small-12 columns row">
                         <h2>Welcome</h2>
-                        <?php the_post();?>
+                        <?php if(have_posts()) : while(have_posts()): the_post();?>
+                            <?php the_content();?>
+                        <?php endwhile; else:?>
+                            <p><?php _e('Sorry, no posts yet');?></p>
+                        <?php endif;?>
                     </div>
                     <div id="blocks" class="small-12 columns row" data-equalizer>
                         <div class="block-wrapper small-12 medium-6 medium-offset-3 large-4 large-offset-0 columns">