Reduce advanced excerpt limits set in template, rely more on admin settings
authorLaury GvR <laury@gaslightmedia.com>
Fri, 21 Jul 2017 20:08:37 +0000 (16:08 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 21 Jul 2017 20:08:37 +0000 (16:08 -0400)
home.php
parts/blog-archive-content.php
parts/blog-feed-front.php
parts/glm-members-only-blog-feed.php

index 096da52..40459e1 100644 (file)
--- a/home.php
+++ b/home.php
@@ -25,7 +25,7 @@
                             <h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h1>
                         </header>
 
-                        <?php echo the_advanced_excerpt('length=200&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,div,h1,h2,h3,h4,h5,h6'); ?>
+                        <?php echo the_advanced_excerpt('exclude_tags=a,img,p,div,h1,h2,h3,h4,h5,h6'); ?>
                         <!--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-->
index 81b4439..92bb857 100644 (file)
@@ -17,7 +17,7 @@
                                     <h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h1>
                                 </header>
 
-                                <?php echo the_advanced_excerpt('length=200&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,div,h1,h2,h3,h4,h5,h6'); ?>
+                                <?php echo the_advanced_excerpt('exclude_tags=a,img,p,div,h1,h2,h3,h4,h5,h6'); ?>
                                 <!--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-->
index 49a92d7..506a9c8 100644 (file)
@@ -19,7 +19,7 @@
                         <?php } ?>
                                 <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                                 <p class="blog-feed-date"><?php echo get_the_date('F j, Y', $post->ID); ?></p>
-                                <p><?php echo the_advanced_excerpt('length=200&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=img,p,strong,div'); ?></p>
+                                <p><?php echo the_advanced_excerpt('exclude_tags=img,p,strong,div'); ?></p>
                         </div>
                     </div>
                 <?php endforeach; ?>
index edb5845..2f8e50a 100644 (file)
@@ -22,7 +22,7 @@ if ($lastposts) { ?>
                     <?php } ?>
                             <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                             <p class="blog-feed-date"><?php echo get_the_date('F j, Y', $post->ID); ?></p>
-                            <p><?php echo the_advanced_excerpt('length=200&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=img,p,strong,div'); ?></p>
+                            <p><?php echo the_advanced_excerpt('exclude_tags=img,p,strong,div'); ?></p>
                     </div>
                 </div>
             <?php endforeach; ?>