Hi,
I have a weblog called ‘noticeboard’, and would like to display recent comments under each entry. I have successfully added a comment submission form and comment display option to my single entry page, but I would like comments to be displayed on the main weblog page as well.
Is this possible? The documentation states that the comment display should be used only in a single page, but I would like visitors to be able to see a list of weblog entries and approved comments under each post.
Here is the code for my weblog diaplsy:
{exp:weblog:entries disable="categories|member_data|pagination|trackbacks" weblog="noticeboard" sort="asc" }
<h2>{title}</h2>
{body} {/exp:weblog:entries}
(I tried taking the disable= part off but this made no difference)
And here is the code I’ve used after the above piece to display the comments:
{exp:comment:entries sort="asc" limit="20"}
{comment}
<p>By {name} on {comment_date format="%Y %m %d"}</p>
{/exp:comment:entries}
The comments aren’t showing up, any suggestions on how I can make this work would be appreciated.
Thanks.
UPDATE:
I’ve managed to list the recent comments by using the code from this page (http://expressionengine.com/docs/modules/comment/recent_comments.html) but these are displayed as a list at the bottom of the page. I would really like each comment to be displayed under the relevant entry.
