Version has been released. Update on New2WP.com
posts . ' WHERE '; if ($interval != '') { $request .= 'post_date>DATE_SUB(NOW(), ' . $interval . ') '; } $request .= 'post_status="publish" AND comment_count > 0 ORDER BY comment_count DESC LIMIT 0, ' . $postCount; $posts = $wpdb->get_results($request); if (count($posts) >= 1) { $defaults = array ( 'title' => __('Popular Posts', BB_BASE), ); $args = bb_defaultArgs($args, $defaults); foreach ($posts as $post) { wp_cache_add($post->ID, $post, 'posts'); $popularPosts[] = array( 'title' => stripslashes($post->post_title), 'url' => get_permalink($post->ID), 'comment_count' => $post->comment_count, ); } echo $args['before_widget'] . $args['before_title'] . $args['title'] . $args['after_title']; ?>
  1. ()
ID); if ($tags) { $first_tag = $tags[0]->term_id; $query = array( 'tag__in' => array ($first_tag), 'post__not_in' => array ($post->ID), 'showposts' => 5, 'caller_get_posts' => 1, ); $bbWp = new WP_Query($query); if ($bbWp->have_posts()) { $defaults = array ( 'title' => __('Related Posts', BB_BASE), ); $args = bb_defaultArgs($args, $defaults); echo $args['before_widget'] . $args['before_title'] . $args['title'] . $args['after_title']; echo '