I read up on the info provided by codex on how to setup a mini loop on a page outside of wordpress and that's working fine, but im having such a hard time. This is the code im using:
<?php
$how_many=5; //How many posts do you want to show
require_once('domains/news.deaf-monkey.com/html/wp-config.php'); // Change this for your path to wp-config.php file ?>
<ol id="whats-new">
<?
$news=$wpdb->get_results("SELECT <code>ID</code>,<code>post_title</code> FROM $wpdb->posts
WHERE <code>post_type</code>=\"post\" AND <code>post_status</code>=\"publish\" ORDER BY post_date DESC LIMIT $how_many");
foreach($news as $np){
printf ("<li><a href=\"http://news.deaf-monkey.com/index.php?p=%s\">%s</a></li>", $np->ID,$np->post_title);
}?>
</ol>
But the problem im having is whenever i try to modify it i just end up messing it up, i was wondering if anyone could help me customize it in such a way that i can remove the way it uses a numbering system to display the posts. To make it easier i think the latest blog posts section at the bottom of http://www.dreamten.com is exactly how i want my mini-loop to look like, which shows the date, comments and even the small 1px margins separating each post.