found my blog problem
authorIan Weller <ian@gaslightmedia.com>
Tue, 23 Jan 2018 17:52:00 +0000 (12:52 -0500)
committerIan Weller <ian@gaslightmedia.com>
Tue, 23 Jan 2018 17:52:00 +0000 (12:52 -0500)
For some reason the archive.php file doesn't take kindly to having
multiple post at the same time.

archive.php

index c136745..34c4e9d 100644 (file)
@@ -9,43 +9,37 @@
 <main class="blog-archive">
     <div class="row">
         <div id="blog-posts-over" class="small-12 medium-9 columns">
-            <?php if(have_posts()) : while(have_posts()): the_post();?>
-            <div class="row blog-posts-container">
-              <!--  <div class="small-11 small-centered columns"> -->
-                <?php $thumbnail = get_the_post_thumbnail($post->ID, 'blog-feed-front'); ?>
-                <?php if ($thumbnail) { ?>
-                <div class="small-12 medium-4 columns text-center blog-feed-imgs">
-                    <?php echo $thumbnail; ?>
-                </div>
-                <div class="small-12 medium-8 columns blog-feed-contents">
-                    <?php } else { ?>
-                    <div class="small-12 columns blog-feed-content">
-                        <?php } ?>
+            <?php if(have_posts()): $i = 1; while (have_posts() && $i < 6) : the_post(); ?>
+            <div class="row content" id="blog-posts-container">
+                <div class="small-11 small-centered columns">
+                    <div class="row">
+                        <div class="small-12 columns">
+
+                            <article id="<?php the_ID()?>" <?php post_class()?>>
+                                <header class="entry-header">
+
+                                    <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
+                                    <span class="meta"> Posted on <strong><?php the_time('F jS, Y'); ?></strong> </span>
+
 
-                        <article id="<?php the_ID()?>" <?php post_class()?>>
-          
-                        <header class="entry-header">
-                            <h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h1>
-                            <span class="meta date">Posted on <?php the_time('F jS, Y') ?></span>
-                        </header>
-                        <?php echo (function_exists('the_advanced_excerpt')) ? the_advanced_excerpt(): the_excerpt(); ?>
-                        <!--the_advanced_excerpt('length=200&length_type=words&no_custom=1&ellipsis=%26hellip;');-->
-                        <!-- This could be wrapped in php tags and be functional,
-                                but it is easier to change this in admin side-->
-                        
-                        </article>
+                                </header>
+
+                                <?php echo the_advanced_excerpt('length=200&length_type=words&no_custom=1&ellipsis=%26hellip;'); ?>
+                                <hr>
+                            </article>
+                        </div>
                     </div>
+                </div>
+            </div>
             <?php endwhile; ?>
-                <div class="navigation">
-                    <span class="newer"><?php previous_posts_link(__('« Newer','example')) ?></span>
-                    <span class="older"><?php next_posts_link(__('Older »','example')) ?></span>
-                </div><!-- /.navigation -->
+            <div class="navigation">
+                <span class="newer"><?php previous_posts_link(__('« Newer','example')) ?></span> <span class="older"><?php next_posts_link(__('Older »','example')) ?></span>
+            </div><!-- /.navigation -->
             <?php else: ?>
-                <div id="post-404" class="noposts">
+            <div id="post-404" class="noposts">
                     <p><?php _e('Sorry, no results were found.');?></p>
-                </div><!-- /#post-404 -->
+            </div><!-- /#post-404 -->
             <?php endif;?>
-            </div>
         </div>
         <?php get_template_part('parts/blog-sidebar-r'); ?>
     </div>