Skip to content

Instantly share code, notes, and snippets.

@jacoborus
Created April 10, 2012 16:53
Show Gist options
  • Save jacoborus/2352830 to your computer and use it in GitHub Desktop.
Save jacoborus/2352830 to your computer and use it in GitHub Desktop.
Archive.php de wordpress muy básico
<?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