WordPress.org

Ready to get started?Download WordPress

Forums

Order by comment count but without trackbacks? (1 post)

  1. akis
    Member
    Posted 3 years ago #

    $wpdb->get_results("SELECT id, post_title, comment_count FROM {$wpdb->prefix}posts WHERE post_type='post' ORDER BY comment_count DESC LIMIT 10");

    That is the code, is it possible to stop countinng the pingbacks/trackbacks?

Topic Closed

This topic has been closed to new replies.

About this Topic