平成30/ 2018-12-19 21:48
WordPress/検索結果の件数

$wp_query->found_posts;
です。

<?php
query_posts(array(
"post_status"=>"publish",
"category__not_in"=>array(1),
"orderby"    =>"date",
"order"      =>"desc",
"showposts"  =>"3",
));
if(
have_posts()
){
    echo $wp_query->found_posts;
    $ct = 0;
    while (have_posts()){