How to display wordpress posts outside the blog?

For example, your main site is http://www.glassespeople.com ,and your blog is http://www.glassespeople.com/blog. If you want so 5 latest post description at www.glassespeople.com, how to do? Simple, the following code will meet your needs: // Include WordPress define(‘WP_USE_THEMES’, false); require(‘blog/wp-load.php’); query_posts(‘showposts=5’);… Read moreHow to display wordpress posts outside the blog?