posts"; $bfa_pp_request .= " WHERE post_status = 'publish' AND comment_count >= $bfa_pp_min_amount_comments"; $bfa_pp_request .= " AND post_password =''"; if ($bfa_pp_duration !="") $bfa_pp_request .= " AND DATE_SUB(CURDATE(),INTERVAL ".$bfa_pp_duration." DAY) < post_date "; $bfa_pp_request .= " ORDER BY comment_count DESC LIMIT $bfa_pp_no_posts"; $bfa_pp_posts = $wpdb->get_results($bfa_pp_request); if ($bfa_pp_posts) { foreach ($bfa_pp_posts as $bfa_pp_post) { $bfa_pp_post_title = stripslashes($bfa_pp_post->post_title); $bfa_pp_comment_count = $bfa_pp_post->comment_count; $bfa_pp_permalink = get_permalink($bfa_pp_post->ID); $widget_mdv_most_commented .= '
Show posts not older than days and with at least comment(s)
And display the list on:
/> Homepage
/> Category Pages
/> Single Post Pages
/> "Page" Pages
/> Archive Pages
/> Tag Pages
/> Search Result Pages
/> Author Pages
/> 404 Not Found Pages