<?php
/*
Template Name: Category Archives
*/
?>
<?php get_header(); ?>
<!-- Begin Content Column -->
<div id="content-news">
<!-- Begin Bars -->
<?php include('single-bars.php'); ?>
<!-- End Bars -->
<!-- Start Contents -->
<div class="maincontents">
<div class="title-archive"><h1><?php $numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish'");
if (0 < $numposts) $numposts = number_format($numposts); ?><?php echo $numposts.' Articulos Publicados'; ?></h1></div>
<ul id="archive-list">
<?php
$myposts = get_posts('numberposts=-1&');
foreach($myposts as $post) : ?>
<li><?php the_time('m/d/y') ?>: <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>
</div>
<!-- End Contents -->
</div>
<!-- End Content Column -->
<!-- ********* ******* TERMINAN CONTENIDOS ******** ******* -->
<?php get_sidebar('detallenoticias'); ?>
<?php get_footer(); ?>