Extra event conditional for blog sidebar
authorLaury GvR <laury@gaslightmedia.com>
Thu, 11 Feb 2016 18:51:13 +0000 (13:51 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 11 Feb 2016 18:51:13 +0000 (13:51 -0500)
single.php

index 52d11b0..77fa024 100644 (file)
@@ -76,7 +76,9 @@
             </div><!-- /#post-404 -->
             <?php endif;?>
         </div>
-        <?php get_template_part('parts/blog-sidebar-r'); ?>
+        <?php if (get_post_type( $post ) != "ai1ec_event") { ?>
+            <?php get_template_part('parts/blog-sidebar-r'); ?>
+        <?php } ?>    
     </div>
     <?php get_footer(); ?>