てすと

get_var(“SELECT count(*) FROM $wpdb->posts WHERE post_status = ‘publish’ AND post_type = ‘post'”);
if (0 < $numposts) $numposts = number_format($numposts); echo '

現在の総記事数: ‘. $numposts .’件

‘;
?>