Revision: 13258
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 16, 2009 10:57 by kwilson
Initial Code
<?php // Include Wordpress define('WP_USE_THEMES', false); require('./blog/wp-blog-header.php'); query_posts('showposts=5'); ?> <ul> <?php while (have_posts()): the_post(); ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endwhile; ?> </ul>
Initial URL
Initial Description
Grab 5 latest Wordpress posts and display them on a non-Wordpress PHP page.
Initial Title
Display 5 latest Wordpress posts
Initial Tags
php, wordpress
Initial Language
PHP