Get exclusive CAP network offers from top brands

View CAP Offers

Reply To: WordPress Php Help

[bsa_pro_ad_space id=2]
#829662
Anonymous
Inactive

[PHP]include(‘path-to-wp/wp-load.php’);
$recent_posts = wp_get_recent_posts(array(‘numberposts’ => 10));
echo ‘

    ‘;
    foreach($recent_posts as $post) {
    echo ‘

  • ‘, $post, ‘
  • ‘;
    }
    echo ‘

‘;[/PHP]

once wp-load.php is loaded you have access to all of WPs functions.