Update for the archive page excerpts
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 13 Nov 2015 18:36:55 +0000 (13:36 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 13 Nov 2015 18:36:55 +0000 (13:36 -0500)
don't show images from post on archive page.

archive.php

index 419508e..a0b581b 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(); ?>
+                        <?php echo the_advanced_excerpt('length=750&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 +69,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>