id="post-">

get_var("SELECT COUNT($ID) FROM $wpdb->posts WHERE post_status = 'publish' "); return $totalposts; } // Get Total Comments function get_totalcomments() { global $wpdb; $comment_ID = (int) 'comment_ID'; $totalcomments = $wpdb->get_var("SELECT COUNT($comment_ID) FROM $wpdb->comments WHERE comment_approved = '1' "); return $totalcomments; } ?>