Created
October 24, 2017 05:21
-
-
Save kirasiris/81f5b643468710524169bbffe9ec9f57 to your computer and use it in GitHub Desktop.
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 $postslist = get_posts('numberposts=3&order=DESC'); ?> | |
<?php if($postslist) : foreach ($postslist as $post) : setup_postdata($post); ?> | |
<div class="media"> | |
<a class="pull-left" href="<?php the_permalink();?>"><?php the_post_thumbnail('post-recientes', array('class'=>'media-object')); ?></a> | |
<div class="media-body"> | |
<h5 class="media-heading"><a href="<?php the_permalink();?>"><?php the_title();?></a></h5> | |
<small id="small-footer"><?php the_time('M j, Y'); ?></small> | |
</div> | |
</div> | |
<?php endforeach; ?> | |
<?php else : ?> | |
<div class="alert alert-danger">Ningun post encontrado</div> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment