get_var("SELECT post_modified FROM $wpdb->posts WHERE id = $id"); if (empty($format)) $format = get_settings('date_format') . ' @ ' . get_settings('time_format'); echo mysql2date($format, $post_mod_date); } ?> get_var("SELECT COUNT(ID) FROM $wpdb->posts WHERE post_status = 'publish'"); echo $totalposts; } function get_totalcomments() { global $wpdb; $totalcomments = $wpdb->get_var("SELECT COUNT(comment_ID) FROM $wpdb->comments WHERE comment_approved = '1'"); echo $totalcomments; } ?>