if you are coder then simply fire query from database
select * from wp_posts order by id desc limit 10.
Thanks but I’m not a coder. 🙂
From other posts, I’ve stumbled my way to a solution … solution for any others coming behind …
1. Include this in the header of you index.php page (not the blog index.php page)
<?php
require(‘/path-to/wp-blog-header.php’);
?>
Must be path, not URL
2. Add this to where you want headers on index.php page.
<?php get_archives(‘postbypost’, ‘5’); ?>
Regards,
Sally
After this: <?php get_archives('postbypost', '5'); ?>
Add this: <?php the_excerpt(); ?>
Not only will you get just a link to your post but also a preview of it.
Hello Dragonpearl,
I have a page within the system,
I want to show the last 3 blog posts like this
<h4>Blog Post Title</h4>
<p>Blog post text upto 20 words</p>
How do I create this loop?
Check here: http://codex.ww.wp.xz.cn/Creating_a_Static_Front_Page#Integrating_WordPress
See the “mini-loop” section.
Perhaps read up on The_Loop as well, if you need more context.
Hello all.
I wanted to follow up on this if I could. I can pull the links to all the content in on the home page, but I would also like to pull in the first 20 words or so of each post. (I’ve tried the loop page HandySolo sent, but I seem to just get the same result).
I am also using permalinks.
Any ideas?