tags:

views:

32

answers:

1

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.

+1  A: 

Try:

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

From Include Tags « WordPress Codex

songdogtech
Works great !Do you know if there is any way to display the comments, but not the input box to add a new comment ?
Jérôme
Depends on the comments_template code in your theme (probably in comments.php), but you can edit that, such as removing `<?php comment_form_title(); ?>` or similar. Make a copy of your comments_template first.
songdogtech