Вот нашел код в инете, которые выводит записи за прошлый месяц:
PHP код:
<?php
$last_mounth 
date('n')-1;
query_posts('&monthnum='.$last_mounth '&posts_per_page=4');                                                       if (have_posts()):
while (
have_posts()) : the_post();?>
<div class="box-2 maxheight clearfix">
<a title="<?php the_title_attribute(); ?>" href="<?php the_permalink() ?>" rel="bookmark">
 <?php if  ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) {                                   the_post_thumbnail(array(123,163), array("class" => "alignleft post_thumbnail img-ind"));
 } 
?>
</a>
<div>
<h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<div><?php the_excerpt();?></div>
 <a class="btn-2" href="<?php the_permalink() ?>">подробнее</a>
</div>
</div>
<?php 
endwhile; 
endif;
?>
Скажите, пожалуйста, а как изменить это код, чтобы не выводилось содержимое постов, а просто подсчитывалось их количество и выводилось?
Заранее благодарен!