Update how many characters for blog feed
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 13 Nov 2015 18:43:58 +0000 (13:43 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 13 Nov 2015 18:43:58 +0000 (13:43 -0500)
on home and archive pages

archive.php
home.php

index a0b581b..c6f873f 100644 (file)
@@ -13,7 +13,7 @@
                             <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 the_advanced_excerpt('length=750&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,div'); ?>
+                        <?php echo the_advanced_excerpt('length=250&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,div'); ?>
                         <footer class="entry-meta small-12 medium-6 medium-push-3 center">
                             <?php $post_categories = wp_get_post_categories( get_the_ID() );
                             $cats = array();
index 3034cce..e73163a 100644 (file)
--- a/home.php
+++ b/home.php
@@ -3,6 +3,11 @@
 <!--    <article <?php // post_class() ?> id="interior-featured">
         <?php // GLM_get_header(); ?>
     </article> -->
+        <div id="con" class="row">
+            <div class="small-12 columns">
+                <?php get_template_part('parts/blog-bread-crumbs');?>
+            </div>
+        </div>
     <div class="row">
         <div id="blog-posts-over" class="small-12 medium-9 columns">
             <?php if(have_posts()) : while(have_posts()): the_post();?>
@@ -13,7 +18,7 @@
                             <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 the_advanced_excerpt(); ?>
+                        <?php echo the_advanced_excerpt('length=250&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,div'); ?>
                         <footer class="entry-meta small-12 medium-6 medium-push-3 center">
                             <?php $post_categories = wp_get_post_categories( get_the_ID() );
                             $cats = array();
@@ -69,8 +74,8 @@
                     'order' => 'ASC'
                     );
                   $categories = get_categories($args);
-                    foreach($categories as $category) { 
-                      echo '<li><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </li> ';  } 
+                    foreach($categories as $category) {
+                      echo '<li><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </li> ';  }
                     ?>
                 </ul>
             </div>