adding exclusion for headers in the advanced excerpt function parameters
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 14 Oct 2016 18:36:41 +0000 (14:36 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 14 Oct 2016 18:36:41 +0000 (14:36 -0400)
archive.php
home.php

index 6cad141..c90c507 100644 (file)
@@ -27,7 +27,7 @@
                     <div class="blog-excerpt-date">
                         Posted on <strong><?php the_time('F jS, Y'); ?></strong>
                     </div>
-                    <?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=265&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,strong,h1,h2,h3,hr,div'); ?>
                     <hr class="contentBreak">
                     
                 </article>
index f8d7350..6a6941c 100644 (file)
--- a/home.php
+++ b/home.php
@@ -30,7 +30,7 @@
                     <div class="blog-excerpt-date">
                         Posted on <strong><?php the_time('F jS, Y'); ?></strong>
                     </div>
-                    <?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=265&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,strong,h1,h2,h3,hr,div'); ?>
                     <hr class="contentBreak">
                     
                 </article>