Skip to content

Instantly share code, notes, and snippets.

@fabolivark
Created April 2, 2013 15:48
Show Gist options
  • Save fabolivark/5293286 to your computer and use it in GitHub Desktop.
Save fabolivark/5293286 to your computer and use it in GitHub Desktop.
<ul>
<?php $temp_query = $wp_query; query_posts('showposts=2&orderby=ASC&cat=8'); ?>
<?php while (have_posts()) { the_post(); ?>
<li>
<a class="news_title" href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to &ldquo;<?php the_title(); ?>&rdquo;">
<?php the_title(); ?></a>
<div class="news_content">
<span class="news_date">Publicado el: <?php the_time('M') ?>. <?php the_time('j') ?> de <?php the_time('Y')?></span>
<p><?php html5wp_excerpt('html5wp_index'); ?></p>
</div>
</li>
<?php } $wp_query = $temp_query; ?>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment