get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish'" );
$num_pages = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'page' AND post_status = 'publish'" );
$num_drafts = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'draft'" );
$num_future = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'future'" );
$num_comments = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'");
$num_cats = wp_count_terms('category');
$num_tags = wp_count_terms('post_tag');
$sentence = 'You have ';
if ( $num_posts )
$sentence .= '
' . number_format( $num_posts ) . ' posts, ';
if ( $num_pages )
$sentence .= '
' . number_format( $num_pages ) . ' pages, ';
if ( $num_drafts )
$sentence .= '
' . number_format( $num_drafts ) . ' drafts, ';
if ( $num_future )
$sentence .= '
' . number_format( $num_future ) . ' scheduled posts, ';
// There is always a category
$sentence .= 'contained within
' . number_format( $num_cats ) . ' categories and ' . number_format( $num_tags ) . ' tags.';
?>
You use the title; ?> theme with widgets. Change Theme. You're using BetaPress TODO.