Removing post categories from the sidebars
authorLaury GvR <laury@gaslightmedia.com>
Tue, 1 Aug 2017 18:43:24 +0000 (14:43 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 1 Aug 2017 18:43:24 +0000 (14:43 -0400)
parts/blog-feed-inside.php
parts/blog-sidebar-members-only.php
parts/blog-sidebar-r.php
parts/search-content.php

index 38ec43a..9e1bc93 100644 (file)
                         <!--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-->
-                        <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 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>
+<!--                        </footer>-->
                     </article>
                 </div>
             </div>
             <?php endforeach; ?>
         </div>
-            
+
     <?php } ?>
 <?php } ?>
\ No newline at end of file
index e5ccb2b..e070ad4 100644 (file)
                         'taxonomy' => 'member-post-category',
                         'hide_empty' => false,
                     ) );
-                    if ( count($cats) > 0 ) {
+//                    if ( count($cats) > 0 ) {
 
                 ?>
 
-                    <h3>Categories</h3>
-                    <ul>
+<!--                    <h3>Categories</h3>-->
+<!--                    <ul>-->
                         <?php
-                            foreach($cats as $cat) {
-                                echo '<li><a href="' . get_category_link( $cat->term_id ) . '" title="' . sprintf( __( "View all member posts in %s" ), $cat->name ) . '" ' . '>' . $cat->name.'</a> </li> ';
-                           }
+//                            foreach($cats as $cat) {
+//                                echo '<li><a href="' . get_category_link( $cat->term_id ) . '" title="' . sprintf( __( "View all member posts in %s" ), $cat->name ) . '" ' . '>' . $cat->name.'</a> </li> ';
+//                           }
                         ?>
-                    </ul>
-                <?php } ?>
+<!--                    </ul>-->
+                <?php //} ?>
                 <h3>Archive</h3>
                 <ul><?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12, 'post_type' => 'member_post' ) ); ?></ul>
             </div>
index 69f0591..c8ab454 100644 (file)
                     }
                 ?>
                 </ul>
-                <h3>Categories</h3>
-                <ul>
+<!--                <h3>Categories</h3>-->
+<!--                <ul>-->
                     <?php
-                    $args = array('orderby' => 'name', 'order' => 'ASC', 'post_type' => 'post' );
-                    $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> ';
-                    }
+//                    $args = array('orderby' => 'name', 'order' => 'ASC', 'post_type' => 'post' );
+//                    $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> ';
+//                    }
                     ?>
-                </ul>
+<!--                </ul>-->
                 <h3>Archive</h3>
                 <ul><?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12, 'post_type' => 'post' ) ); ?></ul>
 
index 47d8ff1..95baa66 100644 (file)
                 <!-- End of the Contextual/Highlight Search -->
 
                         <?php //echo (function_exists('the_advanced_excerpt')) ? the_advanced_excerpt(): the_excerpt(); ?>
-                        <footer class="entry-meta small-12 medium-6 medium-push-3 center">
+<!--                        <footer class="entry-meta small-12 medium-6 medium-push-3 center">-->
                             <?php
-                            if (has_category()) {
-                                $post_categories = wp_get_post_categories( get_the_ID() );
-                                $cats = array();
-                                echo 'This entry was posted ';
-                                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 '.';
-                            }
+//                            if (has_category()) {
+//                                $post_categories = wp_get_post_categories( get_the_ID() );
+//                                $cats = array();
+//                                echo 'This entry was posted ';
+//                                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>
+<!--                        </footer>-->
                     </article>
                 </div>
             </div>