Created
June 26, 2013 19:35
-
-
Save CEscorcio/5870806 to your computer and use it in GitHub Desktop.
last 3 posts with thumb
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
<ul> | |
<?php $the_query = new WP_Query( 'showposts=3' ); ?> | |
<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?> | |
<li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li> | |
<li><?php the_excerpt(__('(more…)')); ?></li> | |
<?php if ( has_post_thumbnail() ) { | |
the_post_thumbnail( array(100,100) ); | |
} ?> | |
<?php endwhile;?> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment