Wordpress : always display comments with articles

2019-09-03 03:44发布

When displaying all articles of a specific month (given through the urls like this : ?m=200906&order=ASC, I would like to display, following each article, all comments regarding this article.

In the article.php of the default theme (the one I'm using), I tried to add the following line :

<?php comments_template(); ?>

before the line

<?php endwhile; ?>

(as I've seen it in single.php) but it doesn't work and I don't really now what I could try next.

标签: wordpress
1条回答
Viruses.
2楼-- · 2019-09-03 04:11

Try:

<?php $withcomments = "1"; comments_template(); ?>

From Include Tags « WordPress Codex

查看更多
登录 后发表回答