Removing header tags from excerpts on blog home
authorLaury GvR <laury@gaslightmedia.com>
Fri, 4 Dec 2015 16:12:29 +0000 (11:12 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 4 Dec 2015 16:12:29 +0000 (11:12 -0500)
home.php

index 1920a30..38f843d 100644 (file)
--- a/home.php
+++ b/home.php
@@ -26,7 +26,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=250&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,h1,h2,h3,h4,h5,h6'); ?>
                         <footer class="entry-meta small-12 medium-6 medium-push-3 center">
                             <?php $post_categories = wp_get_post_categories( get_the_ID() );
                             $cats = array();