November 12, 2012 at 5:02 am
#829662
Inactive
[PHP]include(‘path-to-wp/wp-load.php’);
$recent_posts = wp_get_recent_posts(array(‘numberposts’ => 10));
echo ‘
- ‘;
- ‘, $post, ‘
foreach($recent_posts as $post) {
echo ‘
‘;
}
echo ‘
‘;[/PHP]
once wp-load.php is loaded you have access to all of WPs functions.