}
    /* Restore original Post Data */
    wp_reset_query();
    wp_reset_postdata();
    ?>
            </div>
          </div>
        </a>
      </div>
      <div class="col-sm-6">
        <a href="<?php 
    echo get_category_link(24);
    ?>
" class="cat-bg-24">
          <span class="eje-meta"><span><?php 
    echo count_posts('catsarchive', $year, $month, 24);
    ?>
</span> posts</span>
          <i class="fa icon-cat-24"></i>
          <span class="eje-nombre">Otros temas</span>
          <br class="clearfix">
          <span class="eje-tagline">De todo un poco</span>
          <div class="rb-overlay">
            <span class="rb-close">cerrar</span>
            <div class="rb-content cat-bg-24">
            	<?php 
    $args24 = array('cat' => 24, 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 30, 'orderby' => 'date', 'order' => 'DESC', 'year' => intval($year), 'monthnum' => intval($month));
    // The Query
    $query24 = new WP_Query($args24);
    // The Loop
    if ($query24->have_posts()) {
      </div>
    </article>
  </div>
  <?php 
        }
        ?>
  <?php 
    }
    wp_reset_query();
    wp_reset_postdata();
    ?>
</div><!-- .row -->
<div class="row">
  <ul class="col-sm-12">
    <li><i class="fa fa-file-text-o"></i> <?php 
    echo count_posts('cats', '2000', '01', $idcat);
    ?>
 publicaciones</li>
    <?php 
    $args = array('categories' => $idcat);
    $tags = get_category_tags($args);
    ?>
    <li><i class="fa fa-tags"></i> <?php 
    echo count($tags);
    ?>
 temas</li>
    <li><i class="fa fa-group"></i> <?php 
    autcat($idcat);
    ?>
 autores</li>
    <li class="pull-right"><a href="<?php 
Example #3
0
<?php

get_header();
?>

<div class="blog-header search" style="<?php 
echo the_blankimage() ? 'background-image: url(' . the_blankimage()->getUrl() . ')' : '';
?>
">

</div>

<div class="container blog-main">

<?php 
$count = count_posts();
?>

<span class="value search"><?php 
echo $count;
?>
 result<?php 
echo $count > 1 ? 's' : '';
?>
</span>

<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>