php - How to display comments on homepage when using Underscores (_s) Wordpress theme? -


i have blog set in way shows 1 post per page, , display comments under post on homepage (so posts don't have clicked relevant comments display), i'm getting bit lost..

of course, tried looking possible solution, similar problems 3+ years old, , using different syntax.

i found piece of code in single.php file, , thought inserting before <?php endwhile; ?> in loop trick (as of solutions suggested) .. didn't.

<?php     if ( comments_open() || '0' != get_comments_number() ) :         comments_template();     endif; ?> 

i think there needs tweaked in piece of code, since i'm not php programmer, don't want mess up. suggestions?

use following piece of code wherever want display comments on template different single.php:

<?php  global $withcomments; $withcomments = true; comments_template(); ?> 

Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -