Adjust ID for sidebar press release display
authorLaury GvR <laury@gaslightmedia.com>
Tue, 20 Aug 2019 23:09:18 +0000 (19:09 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 20 Aug 2019 23:09:18 +0000 (19:09 -0400)
home.php
parts/blog-sidebar-r.php

index 1db23c8..9b134ff 100644 (file)
--- a/home.php
+++ b/home.php
     <div class="row">
      
         <div id="blog-posts-over" class="small-12 medium-9 columns">
-            <h1>Sault Ste Marie's Blog</h1>
+            
+            <?php if (is_category(219)) { ?>
+                <h1>Press Releases</h1>
+            <?php } else { ?>
+                <h1>Sault Ste Marie's Blog</h1>
+            <?php } ?>
             <?php if(have_posts()) : while(have_posts()): the_post();?>
             <div class="row content blog-posts-container">
                 <!--<div class="small-11 small-centered columns"> -->
index a15b944..3b0629a 100644 (file)
@@ -8,7 +8,7 @@
                 <p>Recent Posts</p>
                 <ul>
                 <?php
-                    $args = array( 'numberposts' => '5', 'post_status' => 'publish', 'exclude' => 158 );
+                    $args = array( 'numberposts' => '5', 'post_status' => 'publish', 'exclude' => 219 );
                     $recent_posts = wp_get_recent_posts( $args );
                     foreach( $recent_posts as $recent ){
                             echo '<li><a href="' . get_permalink($recent["ID"]) . '">' .   $recent["post_title"].'</a> </li> ';
@@ -21,7 +21,7 @@
                         $args = array(
                           'orderby' => 'name',
                           'order' => 'ASC',
-                          'exclude' => '158'
+                          'exclude' => '219'
                         );
                     $categories = get_categories($args);
                     foreach($categories as $category) {
@@ -31,7 +31,7 @@
                 
                 <p>Archive</p>
                 <ul>
-                    <?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12, '_exclude_terms' => 158 ) ); ?>
+                    <?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12, '_exclude_terms' => 219 ) ); ?>
                 </ul>
                
             </div>