get rid of the extra stuff
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 9 Dec 2015 17:23:34 +0000 (12:23 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 9 Dec 2015 17:23:34 +0000 (12:23 -0500)
archive.php
home.php

index 0b3d61f..6410d77 100644 (file)
                             <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('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();
-                            echo 'This entry was posted ';
-                            if (has_category()) {
-                                echo 'in';
-                                foreach($post_categories as $c){
-                                    $cat = get_category( $c );
-                                    $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
-                                    echo ', <a rel="category" title="View all posts in '. $cat->name . ' " href="'. $cat->slug .'">'. $cat->name .'</a>';
-                                }
-                                echo '.';
-                            }
-                            ?>
-                        </footer>
+                        <?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(); ?>
                     </article>
                 </div>
             </div>
index e457ebc..6fa88ae 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('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 ';
-                            if (has_category()) {
-                                echo 'in';
-                                foreach($post_categories as $c){
-                                    $cat = get_category( $c );
-                                    $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
-                                    echo ', <a rel="category" title="View all posts in '. $cat->name . ' " href="'. $cat->slug .'">'. $cat->name .'</a>';
-                                }
-                                echo '.';
-                            }
-                            ?>
-                        </footer> -->
+                        <?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(); ?>
                     </article>
                 </div>
             </div>