added conditional for comments_template function
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 8 Jan 2016 19:30:48 +0000 (14:30 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 8 Jan 2016 19:30:48 +0000 (14:30 -0500)
single.php

index 22e87ce..13e2fa3 100644 (file)
@@ -63,7 +63,9 @@
                                         ?>
                                     </footer>
                                 </article>
-                                <?php comments_template('/comments.php'); ?>
+                                <?php if ( comments_open() || get_comments_number() ) :
+                                comments_template();
+                                endif; ?>
                             </div>
                         </div>
                     </div>