There used to be a plugin to grab and display most recent blog posts from WordPress database. Well, while you still can use it to get recent posts and them shown on homepage or in sidebar, you can now conveniently add a recent post widget from the WordPress control panel => Appearance => Widgets if your current theme is widget ready.
Use a Recent Posts Plugin
Lots of them!
Add Recent Posts Widget
Log in to your WordPress control panel and head to Appearance and on to Widgets, there’s this Recent Posts widget that you can instantly add to your theme. Make sure the theme you are using is enabled for widgets.
Rely on WordPress Template Tags Function
What you need is the WP template function wp_get_archives(). For instance, to show the latest 10 posts in sidebar, just insert the following line of PHP somewhere in sidebar.php:
<?php wp_get_archives('type=postbypost&limit=10'); ?>
Or in kavoir.com’s case, I added both the lists of 10 most recent posts as well as the 5 most recent comments in footer.php:
<ul class="recent-posts">
<?php wp_get_archives('type=postbypost&limit=10'); ?>
</ul>
<ul class="recent-comments">
<?php if (function_exists('mdv_recent_comments')) {mdv_recent_comments(5);} ?>
</ul>
Related Posts
- Update your theme to WordPress 2.7 with Comments Threading and Paging
- Best Damn Premium WordPress Theme for Professional Blogs: THESIS
- Yet Another Joomla Template Including Original PSD, HTML + CSS and Fonts
- Blogger, WordPress and Movable Type Compared
- WordPress blog goes blank after editing and updating the theme files

{ 3 comments… read them below or add one }
Hello!
Very Interesting post! Thank you for such interesting resource!
PS: Sorry for my bad english, I’v just started to learn this language ;)
See you!
Your, Raiul Baztepo
Woww, Thank you brother . Very good theme .
WTF?