Skip to content
Pulls the entries with at least one comment from the specified channel(s) and sorts by latest comment.
PHP
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
system/plugins
readme.textile

readme.textile

Greetings,

Latest Comments is an ExpressionEngine plug-in and pulls the entries with at least one comment from the specified channel(s) and sorts by latest comment.

Required Parameters

  • weblog – Which weblogs it should pull the entries from.
    • weblog=“blog|blog2|blog3”

Optional Parameters

  • limit – How many entries it should pull. It defaults to 20 if blank.
    • limit=“15”
  • sort – How you want the entries to sort. It defaults to Descending if left blank.
    • sort=“asc”

Variables

  • {title} – Title of entry
  • {url_title} – URL Title of entry
  • {author} – Author of latest comment on the entry.
  • {time_passed} – The time since the latest comment on the entry. It will look something like 1 week 2 days 4 hours 30 seconds ago.
  • {comment_url_title_auto_path} – If you have the Comment Page URL option set in your Weblog Preferences Path Settings this will print out the URL to the comment page.
  • {comment_id} – This is the ID of your comment for use along with anchor tags.

Usage Example

  {exp:latest_comments weblog="blog"}
  <p>{time_passed} ago<br />{author} commented on <a href="{comment_url_title_auto_path}#{comment_id}">{title}</a></p>
  {/exp:latest_comments}

Let me know if you have any questions.

Something went wrong with that request. Please try again.