fixing the single blog page to also reflect the sidebar changes if the post is of...
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 2 Nov 2018 15:28:56 +0000 (11:28 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 2 Nov 2018 15:28:56 +0000 (11:28 -0400)
parts/blog-sidebar-r.php
single.php

index ae66af1..97a1da8 100644 (file)
@@ -1,7 +1,6 @@
 <?php 
     global $post;
     $categories = get_the_category($post->ID);
-    print_r(get_the_category($post->ID));
 ?>
         <div id="blog-side-info-wrapper" class="small-11 small-only-text-center medium-4 columns">
             <div id="blog-side-info">
index 5a2deea..b861d04 100644 (file)
@@ -1,3 +1,8 @@
+<?php 
+global $post; 
+$categories = get_the_category($post->ID);
+$isEpicenter = has_category(53, $post->ID);
+?>
 <?php get_header(); ?>
     <main class="blog-single">
         <div id="head-img">
                 <?php endif;?>
             </div>
             <?php
-            if (is_single() && !is_post_type('ai1ec_event')){
+            if (is_single() && !is_post_type('ai1ec_event') && !$isEpicenter){
                 get_template_part('parts/blog-sidebar-r');
+            }else{
+                get_template_part('parts/blog-sidebar-rss');
             }
             ?>
         <?php get_template_part('parts/interior-footer'); ?>