You can do this using the orderby
parameter of WP_Query
. If you set it to comment_count
, you can get the most popular. You will probably need to filter the WHERE
parameter to set your date on the query (unless you want the last week or the last month or something simple like that) though.