This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Filter By Comments


Adds query vars (comment_count, comment_count_compare, orderby_last_comment, orderby_last_activity) for filtering posts by comments.


  1. Upload FilterByComments.php to your /wp-content/plugins/ directory.
  2. Activate the “Filter By Comments” plugin through the “Plugins” menu in WordPress.
  3. Use comment_count, comment_count_compare, orderby_last_comment, orderby_last_activity query vars in your WP_Query and query_posts calls.

Contributors & Developers

“Filter By Comments” is open source software. The following people have contributed to this plugin.


Translate “Filter By Comments” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Added orderby_last_activity for ordering posts by last comment date or, if no comments, post date.


  • Initial release.