removing guest blogger category from outputting above other posts, bumping theme...
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 27 Jun 2017 15:22:19 +0000 (11:22 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 27 Jun 2017 15:22:19 +0000 (11:22 -0400)
there was a check in the post loop to for the cat id of a post to display the guest bloggers
first, removed that so they just display as normmal

index.php
style.css

index 5e4f342..7ea73df 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,44 +1,8 @@
 <?php get_header(); ?>
     <div class="row">
         <div id="blog-posts-over" class="small-12 medium-9 columns">
-         <?php $args = array(
-            'cat' => 1,
-            'posts_per_page' => 1
-        );
-          $the_query = new WP_Query($args); ?>
-          <!-- GUEST BLOGGER SECTION -->
-           <?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
-        <?php $do_not_duplicate = $post->ID; ?>
-         <div class="row content blog-posts-container">
-               <?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 } ?>
-                        <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>
-                      <?php endwhile; ?>
-                </div>
-             </div>
-                <?php wp_reset_postdata(); ?>
-                
-               
-          
             <!-- MAIN BLOG SECTION -->
             <?php if(have_posts()) : while(have_posts()): the_post();?>
-            <?php if($post->ID == $do_not_duplicate) continue; ?>
             <div class="row content blog-posts-container">
               <!--  <div class="small-11 small-centered columns"> -->
                 <?php $thumbnail = get_the_post_thumbnail($post->ID, 'blog-feed-front'); ?>
index 7c87ae5..f880d15 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: keweenawblog
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for keweenawblog
-Version: 1.1.0
+Version: 1.1.5
 */