Enable order by comment count in get_posts

  1. danielpataki

    While building some templates I wanted to show articles in order of popularity (based on comment count). get_posts() is really handy for this kind of stuff, but unfortunately it does not support order by comment count, so a separate database query has to be made manually (or you have to modify core files)

    Since the comment count is in the wp_posts table I guess it would not be a huge hastle to implement this into the wordpress core and it would be a big time saver for me in some cases.

    I hope some of you also would like this, this is my first idea here :)

    Posted: 11 years ago #
  2. Mark Jaquith


    This is a good idea. +1

    Posted: 11 years ago #
  3. Aaron Jorbin

    This could easily be done via a plugin (especially with the easy of widget creating)

    +1 to the idea

    Posted: 11 years ago #
  4. scribu

    Added 5 months ago:


    Posted: 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    2 Votes
  • Status

    This idea has been implemented