Retired Documentation:  You are using the documentation for version 1.7.3 which was retired in 2013. Go here for the latest version documentation or check here for your available upgrades to the latest version.

Displaying Recent Comments

The standard ExpressionEngine {exp:comment:entries} comment tag can be used to display a list of recent comments. Many people use a list like this in a sidebar of their site.

A simple example:

{exp:comment:entries sort="desc" orderby="date" limit="10" dynamic="off"}

{comment}

<p>By {name} on {comment_date format="%Y %m %d"}<br />
From the entry '<a href="{comment_url_title_auto_path}">{title}</a>'.</p>

{/exp:comment:entries}

It is very important that the dynamic="off" parameter be included above. This is what allows ExpressionEngine to display the comments independent of a particular entry. Also note that you can use a number of values for the orderby= parameter.

Top of Page