WordPress.org

Ready to get started?Download WordPress

Ideas

Enable order by comment count in get_posts

  1. danielpataki
    Member

    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: 4 years ago #
  2. Mark Jaquith
    WordPress Lead Dev

    12345

    This is a good idea. +1

    Posted: 4 years ago #
  3. Aaron Jorbin
    Member

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

    +1 to the idea

    Posted: 4 years ago #
  4. scribu
    Member

    Added 5 months ago:

    http://core.trac.wordpress.org/changeset/12127

    Posted: 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    12345
    2 Votes
  • Status

    This idea has been implemented