Answer by Sepehr Lajevardi for Getting recent blog posts from wordpress
<?php
$loop = new WP_Query('showposts=5&orderby=ID&order=DESC');
if($loop->have_posts()): while($loop->have_posts()): $loop->the_post();
?>
<div class="post" id="post-<?php the_ID(); ?>">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<span class="post-meta">
<?php the_time('F jS, Y'); ?> by <?php the_author_posts_link(); ?>
</span>
</div>
<?php endwhile; else: ?>
No recent posts yet!
<?php endif; ?>
See: WordPress Loop, query_posts(), WP_Query(). There are also plugins to get recent posts.