No longer show comments on events
authorLaury GvR <laury@gaslightmedia.com>
Thu, 11 Feb 2016 17:31:15 +0000 (12:31 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 11 Feb 2016 18:42:26 +0000 (13:42 -0500)
single.php

index 16f5ff4..5e1f4f3 100644 (file)
                                 </header>
                                 <?php echo the_content(); ?>
                             </article>
-                            <?php if ( comments_open() || get_comments_number() ) :
-                            comments_template();
-                            endif; ?>
+                            <?php if (get_post_type( $post ) != "ai1ec_event") {
+                                if ( comments_open() || get_comments_number() ) :
+                                comments_template();
+                                endif;
+                            } ?>
                         </div>
                     </div>
                 </div>