forked from falconmasters/MyBlog-WordpressTheme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
30 lines (24 loc) · 964 Bytes
/
archive.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php get_header(); ?>
<section id="main">
<section id="articles_list">
<h2 id="cat_name"><?php single_cat_title( $prefix = '', $display = true ); ?></h2>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article>
<div class="thumb"><a href="<?php the_permalink();?>">
<?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'list_articles_thumbs' ); } ?>
</a></div>
<hgroup><h2><a href="<?php the_permalink();?>"><?php the_title();?></a></h2></hgroup>
<div class="date"><?php the_date();?> en <span><?php the_category();?></span></div>
<div class="extract"><?php the_excerpt();?></div>
</article>
<?php endwhile; else: ?>
<h1>No se encontraron Articulos</h1>
<?php endif; ?>
<div id="pagination">
<p><?php next_posts_link('<- Post Siguientes')?>
<?php previous_posts_link('Post Anteriores ->') ?></p>
</div>
</section>
<?php get_sidebar(); ?>
</section>
<?php get_footer(); ?>