Update blog
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 9 Dec 2015 16:57:23 +0000 (11:57 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 9 Dec 2015 16:57:23 +0000 (11:57 -0500)
remove images and headers from the excerpt.

archive.php
home.php

index 66455a2..0b3d61f 100644 (file)
@@ -1,12 +1,12 @@
 <?php get_header(); ?>
 <header>
     <?php get_template_part('parts/top-bar_main');?>
-    <?php get_template_part('parts/head-image');?>  
+    <?php get_template_part('parts/head-image');?>
 </header>
 <?php get_template_part('parts/off-canvas_main');?>
 <main class="blog-archive">
     <article <?php post_class() ?> id="interior">
-        
+
     </article>
     <div class="row">
         <div id="blog-posts-over" class="small-12 medium-9 columns">
@@ -18,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 (function_exists('the_advanced_excerpt')) ? the_advanced_excerpt(): the_excerpt(); ?>
+                        <?php echo (function_exists('the_advanced_excerpt')) ? the_advanced_excerpt('length=250&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,div,h1,h2,h3,h4,h5,h6'): the_excerpt(); ?>
                         <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 f181b05..e457ebc 100644 (file)
--- a/home.php
+++ b/home.php
                             <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-->
-                        <!--<footer class="entry-meta small-12 medium-6 medium-push-3 center">
+                        <?php echo (function_exists('the_advanced_excerpt')) ? the_advanced_excerpt('length=250&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,div,h1,h2,h3,h4,h5,h6'): the_excerpt(); ?>
                             <?php $post_categories = wp_get_post_categories( get_the_ID() );
                             $cats = array();
                             echo 'This entry was posted ';