Created
April 10, 2012 16:53
-
-
Save jacoborus/2352830 to your computer and use it in GitHub Desktop.
Archive.php de wordpress muy básico
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<div class="container central"> | |
<div class="row"> | |
<section class="archive nine columns"> | |
<?php if (have_posts()) : ?> | |
<h1>Noticias de <?php the_time('F, Y'); ?></h2> | |
<?php while (have_posts()) : the_post(); ?> | |
<article class="row" id="post-<?php the_ID(); ?>" > | |
<time class="two columns"><?php the_time('d / m / y'); ?></time> | |
<h1 class="ten columns"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1> | |
</article> | |
<?php endwhile; else : ?> | |
<h2>Ups..! Aquí no hay nada</h2> | |
<?php endif; ?> | |
</section> | |
<?php get_sidebar(); ?> | |
</div> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment