Re: latest wordpress stories (code)
and my final correction on the random thing!
$stories = $bbdb->get_results("SELECT post_title, guid FROM site_posts WHERE post_type='post' AND post_status='publish' ORDER BY post_date_gmt DESC LIMIT 0,10");
previous example was getting a random 10 from all posts.
This get’s 10 latest posts, then randomizes them with the ‘shuffle’.