How to list the most commented entries

What we will do is simply make a list of weblog entries and sort it by total comments. No hard at all, but other uses of this arrise! A top 100 list of your entries based on total comments.

 

The Code 

<ol>
{exp:weblog:entries weblog="default_site" orderby="comment_total" rdf="off" dynamic="off" limit="10" disable="member_data|pagination|trackbacks|categories|custom_fields"}
<li><a href="{comment_url_title_auto_path}">{title}</a> ({comment_total}) </li>
{/exp:weblog:entries}
</ol>

Simple huh? We just use the orderby="comment_total" to generate a list of entries based on total comments.
Want to list the least commented entries? Just use the sort="desc" and it will list the least commented entries.

With this you can also make a list of top 100 best commented entries. Just use the limit="100".

This is a very short tutorial, but you can see the uses of the orderby="comment_total" parameter are quite useful.