Created
April 15, 2010 16:21
-
-
Save michelson/367315 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
<? $recentPosts = new WP_Query(); | |
$recentPosts->query('offset=1&showposts=5'.'&limit='.$how_many); | |
?> | |
<div class="box"> | |
<?php while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?> | |
<div class="latest_news latest_news span-12 last append-bottom"> | |
<div class="tiny_box"> | |
<h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3> | |
<? if (has_post_thumbnail()) { | |
the_post_thumbnail(); | |
} else { | |
echo "no thumb"; | |
} | |
?> | |
<p><?= the_excerpt() ?></p> | |
</div> | |
</div> | |
<?php endwhile; ?> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment